Skip to content

Commit

Permalink
Heatproof is an attack modifier in SV
Browse files Browse the repository at this point in the history
  • Loading branch information
thejetou committed Oct 17, 2023
1 parent f446d80 commit eb274a5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion calc/src/mechanics/gen789.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit eb274a5

Please sign in to comment.