[Bug] Stop Shield Dust and Gluttony from Displaying ()

Prevent displays
This commit is contained in:
Dean 2025-03-27 12:01:33 -07:00 committed by GitHub
parent d955051730
commit eb12b8c692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions
src/data

View File

@ -1285,6 +1285,9 @@ export class MoveEffectChanceMultiplierAbAttr extends AbAttr {
* @see {@linkcode applyPreDefend}
*/
export class IgnoreMoveEffectsAbAttr extends PreDefendAbAttr {
constructor(showAbility: boolean = false) {
super(showAbility);
}
override canApplyPreDefend(pokemon: Pokemon, passive: boolean, simulated: boolean, attacker: Pokemon, move: Move | null, cancelled: Utils.BooleanHolder | null, args: any[]): boolean {
return (args[0] as Utils.NumberHolder).value > 0;
@ -4711,7 +4714,7 @@ export class ForceSwitchOutImmunityAbAttr extends AbAttr {
export class ReduceBerryUseThresholdAbAttr extends AbAttr {
constructor() {
super();
super(false);
}
override canApply(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {