From a856e2f5d7bf6bdc9ced5de63e699ca41202ee37 Mon Sep 17 00:00:00 2001 From: Matthew Ross Date: Fri, 10 May 2024 20:01:34 -0700 Subject: [PATCH] Only check ability attribute if move attribute was false --- src/field/pokemon.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 6a779a16472..d108f64417b 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1406,9 +1406,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { if (isPhysical && source.status && source.status.effect === StatusEffect.BURN) { const burnDamageReductionCancelled = new Utils.BooleanHolder(false); applyMoveAttrs(BypassBurnDamageReductionAttr, source, this, move, burnDamageReductionCancelled) - applyAbAttrs(BypassBurnDamageReductionAbAttr, source, burnDamageReductionCancelled); - if (!burnDamageReductionCancelled.value) - damage.value = Math.floor(damage.value / 2); + + if(!burnDamageReductionCancelled.value){ + applyAbAttrs(BypassBurnDamageReductionAbAttr, source, burnDamageReductionCancelled); + if (!burnDamageReductionCancelled.value) + damage.value = Math.floor(damage.value / 2); + } } move.getAttrs(HitsTagAttr).map(hta => hta as HitsTagAttr).filter(hta => hta.doubleDamage).forEach(hta => { if (this.getTag(hta.tagType))