mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 05:42:18 +02:00
add floor for potential non int multipliers
This commit is contained in:
parent
7ff81c3638
commit
f4cf65ebb1
@ -1015,7 +1015,8 @@ export class DamageBoostAbAttr extends PreAttackAbAttr {
|
|||||||
*/
|
*/
|
||||||
applyPreAttack(pokemon: Pokemon, passive: boolean, defender: Pokemon, move: PokemonMove, args: any[]): boolean {
|
applyPreAttack(pokemon: Pokemon, passive: boolean, defender: Pokemon, move: PokemonMove, args: any[]): boolean {
|
||||||
if (this.condition(pokemon, defender, move.getMove())) {
|
if (this.condition(pokemon, defender, move.getMove())) {
|
||||||
(args[0] as Utils.NumberHolder).value *= this.damageMultiplier;
|
const power = args[0] as Utils.NumberHolder;
|
||||||
|
power.value = Math.floor(power.value * this.damageMultiplier);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user