From 4b084658d26d0aa4d38bdd18f8f051dbc3ca11a3 Mon Sep 17 00:00:00 2001 From: Reldnahc Date: Sat, 27 Apr 2024 23:04:20 -0500 Subject: [PATCH] only do the thingy if it actually gets effected. --- src/data/ability.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 6e7300661..224b9ee4b 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -939,8 +939,9 @@ export class MoveChanceBoostAbAttr extends VariableMoveChanceAbAttr { } 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; - return true; } }