Fixed damage moves are no longer affected by tokens
parent
413d748287
commit
123d268619
|
@ -1116,11 +1116,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!fixedDamage.value) {
|
||||||
if (!source.isPlayer())
|
if (!source.isPlayer())
|
||||||
this.scene.applyModifiers(EnemyDamageBoosterModifier, false, damage);
|
this.scene.applyModifiers(EnemyDamageBoosterModifier, false, damage);
|
||||||
|
|
||||||
if (!this.isPlayer())
|
if (!this.isPlayer())
|
||||||
this.scene.applyModifiers(EnemyDamageReducerModifier, false, damage);
|
this.scene.applyModifiers(EnemyDamageReducerModifier, false, damage);
|
||||||
|
}
|
||||||
|
|
||||||
if (damage) {
|
if (damage) {
|
||||||
damage.value = this.damageAndUpdate(damage.value, result as DamageResult, isCritical);
|
damage.value = this.damageAndUpdate(damage.value, result as DamageResult, isCritical);
|
||||||
|
|
Loading…
Reference in New Issue