From dff9a21a0b449c15b2e5082264eb6ca1abcd901e Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Fri, 29 Mar 2024 15:00:16 -0400 Subject: [PATCH] Fix not properly checking damage greater than 0 for certain effects --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 7b35cec07dd..981970ed2a9 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1173,7 +1173,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { this.scene.applyModifiers(EnemyDamageReducerModifier, false, damage); } - if (damage) { + if (damage.value) { applyPreDefendAbAttrs(PreDefendEndureAbAttr, this, source, battlerMove, cancelled, damage); const oneHitKo = result === HitResult.ONE_HIT_KO;