minor fix
This commit is contained in:
parent
ff2c32277e
commit
decceeec89
12
game/game.js
12
game/game.js
|
@ -25758,8 +25758,8 @@
|
||||||
newRange=info.distance.attackRange(card,player);
|
newRange=info.distance.attackRange(card,player);
|
||||||
}
|
}
|
||||||
//否则采用祖宗之法
|
//否则采用祖宗之法
|
||||||
else if(typeof info.attackFrom=='number'){
|
else if(typeof info.distance.attackFrom=='number'){
|
||||||
newRange-=info.attackFrom;
|
newRange-=info.distance.attackFrom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Math.max(range,newRange)
|
return Math.max(range,newRange)
|
||||||
|
@ -25782,8 +25782,8 @@
|
||||||
newRange=info.distance.attackRange(card,player);
|
newRange=info.distance.attackRange(card,player);
|
||||||
}
|
}
|
||||||
//否则采用祖宗之法
|
//否则采用祖宗之法
|
||||||
else if(typeof info.attackFrom=='number'){
|
else if(typeof info.distance.attackFrom=='number'){
|
||||||
newRange-=info.attackFrom;
|
newRange-=info.distance.attackFrom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Math.max(range,newRange);
|
return Math.max(range,newRange);
|
||||||
|
@ -56087,8 +56087,8 @@
|
||||||
newRange=info.distance.attackRange(card,player);
|
newRange=info.distance.attackRange(card,player);
|
||||||
}
|
}
|
||||||
//否则采用祖宗之法
|
//否则采用祖宗之法
|
||||||
else if(typeof info.attackFrom=='number'){
|
else if(typeof info.distance.attackFrom=='number'){
|
||||||
newRange-=info.attackFrom;
|
newRange-=info.distance.attackFrom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Math.max(range,newRange)
|
return Math.max(range,newRange)
|
||||||
|
|
Loading…
Reference in New Issue