From 6decbec6a998e97111fca2976598ee1433fbbe30 Mon Sep 17 00:00:00 2001 From: neverblde Date: Sun, 7 Apr 2024 01:33:32 -0700 Subject: [PATCH] Fix pokemon applying burn reduction --- src/field/pokemon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 9ab17855cc6..bcfb605c981 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1179,7 +1179,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { damage.value = Math.ceil(((((2 * source.level / 5 + 2) * power.value * sourceAtk.value / targetDef.value) / 50) + 2) * stabMultiplier.value * typeMultiplier.value * arenaAttackTypeMultiplier * screenMultiplier.value * ((this.scene.randBattleSeedInt(15) + 85) / 100) * criticalMultiplier); if (isPhysical && source.status && source.status.effect === StatusEffect.BURN) { const burnDamageReductionCancelled = new Utils.BooleanHolder(false); - applyAbAttrs(BypassBurnDamageReductionAbAttr, this, burnDamageReductionCancelled); + applyAbAttrs(BypassBurnDamageReductionAbAttr, source, burnDamageReductionCancelled); if (!burnDamageReductionCancelled.value) damage.value = Math.floor(damage.value / 2); }