Skip to content

Commit

Permalink
Move Punching Glove base power modification to same block as other it…
Browse files Browse the repository at this point in the history
…ems (#666)
  • Loading branch information
shrianshChari authored Nov 3, 2024
1 parent 100b74d commit 417729b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions calc/src/mechanics/gen789.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1228,10 +1228,6 @@ export function calculateBPModsSMSSSV(
desc.attackerAbility = attacker.ability;
}

if (attacker.hasItem('Punching Glove') && move.flags.punch) {
bpMods.push(4506);
}

if (gen.num <= 8 && defender.hasAbility('Heatproof') && move.hasType('Fire')) {
bpMods.push(2048);
desc.defenderAbility = defender.ability;
Expand Down Expand Up @@ -1282,6 +1278,8 @@ export function calculateBPModsSMSSSV(
) {
bpMods.push(4505);
desc.attackerItem = attacker.item;
} else if (attacker.hasItem('Punching Glove') && move.flags.punch) {
bpMods.push(4506);
}
return bpMods;
}
Expand Down

0 comments on commit 417729b

Please sign in to comment.