bugfix: ensure hit recoil moves always do at least 1hp in recoil
parent
d48f0aa97d
commit
06ae04abad
|
@ -685,7 +685,7 @@ export class RecoilAttr extends MoveEffectAttr {
|
|||
return false;
|
||||
|
||||
const recoilDamage = Math.max(Math.floor((!this.useHp ? user.turnData.damageDealt : user.getMaxHp()) * this.damageRatio),
|
||||
!this.useHp && user.turnData.damageDealt ? 1 : 0);
|
||||
user.turnData.damageDealt ? 1 : 0);
|
||||
if (!recoilDamage)
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue