Add flooring to ReceivedMoveDamageMultiplierAbAttr (#2606)

* Add flooring to ReceivedMoveDamageMultiplierAbAttr

* Fix merge conflicts for real
This commit is contained in:
Tempoanon 2024-06-25 20:08:03 -04:00 committed by GitHub
parent 6046b9bfae
commit 7e3ff28eaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -312,7 +312,8 @@ export class ReceivedMoveDamageMultiplierAbAttr extends PreDefendAbAttr {
applyPreDefend(pokemon: Pokemon, passive: boolean, attacker: Pokemon, move: Move, cancelled: Utils.BooleanHolder, args: any[]): boolean {
if (this.condition(pokemon, attacker, move)) {
(args[0] as Utils.NumberHolder).value *= this.damageMultiplier;
(args[0] as Utils.NumberHolder).value = Math.floor((args[0] as Utils.NumberHolder).value * this.damageMultiplier);
return true;
}