mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-17 01:37:36 +00:00
Fix Adaptability popup triggering falsely on non-STAB moves
This commit is contained in:
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…
x
Reference in New Issue
Block a user