mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-01 05:52:17 +02: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 (!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
Block a user