Fix Adaptability popup triggering falsely on non-STAB moves
parent
b114cd1cb1
commit
c9eac1f510
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue