mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-17 22:40:59 +00:00
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 (!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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user