Fix not properly checking damage greater than 0 for certain effects
parent
34f748f331
commit
dff9a21a0b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue