only do the thingy if it actually gets effected.

pull/325/head
Reldnahc 2024-04-27 23:04:20 -05:00
parent 4dd2504bc7
commit 4b084658d2
1 changed files with 2 additions and 1 deletions

View File

@ -939,8 +939,9 @@ export class MoveChanceBoostAbAttr extends VariableMoveChanceAbAttr {
} }
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 ((args[0] as Utils.NumberHolder).value == 100 || (args[0] as Utils.NumberHolder).value == -1)
return false;
(args[0] as Utils.NumberHolder).value *= this.chanceMultiplier; (args[0] as Utils.NumberHolder).value *= this.chanceMultiplier;
return true; return true;
} }
} }