Fix not properly checking damage greater than 0 for certain effects

pull/20/head
Flashfyre 2024-03-29 15:00:16 -04:00
parent 34f748f331
commit dff9a21a0b
1 changed files with 1 additions and 1 deletions

View File

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