mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-31 05:07:11 +00:00
Fix not properly checking damage greater than 0 for certain effects
This commit is contained in:
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…
x
Reference in New Issue
Block a user