From c9eac1f510840dbfd55d923c6f8755b37d655659 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Tue, 26 Mar 2024 09:32:02 -0400 Subject: [PATCH] Fix Adaptability popup triggering falsely on non-STAB moves --- src/data/ability.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index d10eb53e0..f7dbf645e 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -161,10 +161,12 @@ export class BlockItemTheftAbAttr extends AbAttr { export class StabBoostAbAttr extends AbAttr { apply(pokemon: Pokemon, cancelled: Utils.BooleanHolder, args: any[]): boolean { - if ((args[0] as Utils.NumberHolder).value > 1) + if ((args[0] as Utils.NumberHolder).value > 1) { (args[0] as Utils.NumberHolder).value += 0.5; + return true; + } - return true; + return false; } }