Skip to content

Commit

Permalink
Move Punching Glove base power modification to same block as other items
Browse files Browse the repository at this point in the history
  • Loading branch information
shrianshChari committed Nov 3, 2024
1 parent ffc46f6 commit 7db692b
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 @@ -1223,10 +1223,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 @@ -1277,6 +1273,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 7db692b

Please sign in to comment.