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);
|
||||
}
|
||||
//否则采用祖宗之法
|
||||
else if(typeof info.attackFrom=='number'){
|
||||
newRange-=info.attackFrom;
|
||||
else if(typeof info.distance.attackFrom=='number'){
|
||||
newRange-=info.distance.attackFrom;
|
||||
}
|
||||
}
|
||||
return Math.max(range,newRange)
|
||||
|
@ -25782,8 +25782,8 @@
|
|||
newRange=info.distance.attackRange(card,player);
|
||||
}
|
||||
//否则采用祖宗之法
|
||||
else if(typeof info.attackFrom=='number'){
|
||||
newRange-=info.attackFrom;
|
||||
else if(typeof info.distance.attackFrom=='number'){
|
||||
newRange-=info.distance.attackFrom;
|
||||
}
|
||||
}
|
||||
return Math.max(range,newRange);
|
||||
|
@ -56087,8 +56087,8 @@
|
|||
newRange=info.distance.attackRange(card,player);
|
||||
}
|
||||
//否则采用祖宗之法
|
||||
else if(typeof info.attackFrom=='number'){
|
||||
newRange-=info.attackFrom;
|
||||
else if(typeof info.distance.attackFrom=='number'){
|
||||
newRange-=info.distance.attackFrom;
|
||||
}
|
||||
}
|
||||
return Math.max(range,newRange)
|
||||
|
|
Loading…
Reference in New Issue