Fix Adaptability popup triggering falsely on non-STAB moves

pull/17/head
Flashfyre 2024-03-26 09:32:02 -04:00
parent b114cd1cb1
commit c9eac1f510
1 changed files with 4 additions and 2 deletions

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;
}
}