From 123d2686198c60420c5e2cd41ec9b7f2bf2116cd Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 3 Mar 2024 23:55:52 -0500 Subject: [PATCH] Fixed damage moves are no longer affected by tokens --- src/field/pokemon.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 2fc8e09c5..2f0ed6b73 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1116,11 +1116,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { } } - if (!source.isPlayer()) - this.scene.applyModifiers(EnemyDamageBoosterModifier, false, damage); - - if (!this.isPlayer()) - this.scene.applyModifiers(EnemyDamageReducerModifier, false, damage); + if (!fixedDamage.value) { + if (!source.isPlayer()) + this.scene.applyModifiers(EnemyDamageBoosterModifier, false, damage); + if (!this.isPlayer()) + this.scene.applyModifiers(EnemyDamageReducerModifier, false, damage); + } if (damage) { damage.value = this.damageAndUpdate(damage.value, result as DamageResult, isCritical);