Remove old SuppressFieldAbilitiesAttr

This commit is contained in:
Dean 2025-02-19 12:49:54 -08:00
parent b6a7bd1b2d
commit 42a0ecbba7

View File

@ -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) */