bugfix: ensure hit recoil moves always do at least 1hp in recoil

pull/434/head
Madi Simpson 2024-05-03 14:06:50 -07:00 committed by Samuel H
parent d48f0aa97d
commit 06ae04abad
1 changed files with 1 additions and 1 deletions

View File

@ -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;