Skip to content

Commit

Permalink
should probably floor decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
vivapuffs committed Nov 30, 2023
1 parent 6207825 commit 4e691b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calc/src/mechanics/gen3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export function calculateADV(
}

if (!attacker.hasItem('Sea Incense') && move.hasType(getItemBoostType(attacker.item))) {
bp = bp * 1.1;
bp = Math.floor(bp * 1.1);
desc.attackerItem = attacker.item;
} else if (attacker.hasItem('Sea Incense') && move.hasType('Water')) {
at = Math.floor(at * 1.05);
Expand Down

0 comments on commit 4e691b4

Please sign in to comment.