diff --git a/calc/src/mechanics/gen789.ts b/calc/src/mechanics/gen789.ts index eba0fa88a..719f2cdbe 100644 --- a/calc/src/mechanics/gen789.ts +++ b/calc/src/mechanics/gen789.ts @@ -1102,7 +1102,7 @@ export function calculateBPModsSMSSSV( desc.attackerItem = attacker.item; } - if (defender.hasAbility('Heatproof') && move.hasType('Fire')) { + if (gen.num <= 8 && defender.hasAbility('Heatproof') && move.hasType('Fire')) { bpMods.push(2048); desc.defenderAbility = defender.ability; } else if (defender.hasAbility('Dry Skin') && move.hasType('Fire')) { @@ -1285,6 +1285,11 @@ export function calculateAtModsSMSSSV( atMods.push(2048); desc.defenderAbility = defender.ability; } + + if (gen.num >= 9 && defender.hasAbility('Heatproof') && move.hasType('Fire')) { + atMods.push(2048); + desc.defenderAbility = defender.ability; + } // Pokemon with "-of Ruin" Ability are immune to the opposing "-of Ruin" ability const isTabletsOfRuinActive = (defender.hasAbility('Tablets of Ruin') || field.isTabletsOfRuin) && !attacker.hasAbility('Tablets of Ruin');