Fixed damage moves are no longer affected by tokens

pull/16/head
Flashfyre 2024-03-03 23:55:52 -05:00
parent 413d748287
commit 123d268619
1 changed files with 6 additions and 5 deletions

View File

@ -1116,11 +1116,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
}
}
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);