Fix Adaptability popup triggering falsely on non-STAB moves

This commit is contained in:
Flashfyre committed 2024-03-26 09:32:02 -04:00
1 parent b114cd1cb1
commit c9eac1f510
1 file changed
+4 -2
+4 -2
View File
@@ -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;
}
}