Fixed damage moves are no longer affected by tokens
This commit is contained in:
parent
413d748287
commit
123d268619
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue