mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-22 08:12:20 +02:00
Remove old SuppressFieldAbilitiesAttr
This commit is contained in:
parent
b6a7bd1b2d
commit
42a0ecbba7
@ -4486,21 +4486,6 @@ export class MoveAbilityBypassAbAttr extends AbAttr {
|
||||
}
|
||||
}
|
||||
|
||||
export class SuppressFieldAbilitiesAbAttr extends AbAttr {
|
||||
constructor() {
|
||||
super(false);
|
||||
}
|
||||
|
||||
apply(pokemon: Pokemon, passive: boolean, simulated: boolean, cancelled: Utils.BooleanHolder, args: any[]): boolean {
|
||||
const ability = (args[0] as Ability);
|
||||
if (!ability.hasAttr(UnsuppressableAbilityAbAttr) && !ability.hasAttr(SuppressFieldAbilitiesAbAttr)) {
|
||||
cancelled.value = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export class AlwaysHitAbAttr extends AbAttr { }
|
||||
|
||||
/** Attribute for abilities that allow moves that make contact to ignore protection (i.e. Unseen Fist) */
|
||||
|
Loading…
Reference in New Issue
Block a user