mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-05-03 23:13:20 +01:00
[Bug] Stop Shield Dust and Gluttony from Displaying (#5564)
Prevent displays
This commit is contained in:
parent
d955051730
commit
eb12b8c692
@ -1285,6 +1285,9 @@ export class MoveEffectChanceMultiplierAbAttr extends AbAttr {
|
|||||||
* @see {@linkcode applyPreDefend}
|
* @see {@linkcode applyPreDefend}
|
||||||
*/
|
*/
|
||||||
export class IgnoreMoveEffectsAbAttr extends PreDefendAbAttr {
|
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 {
|
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;
|
return (args[0] as Utils.NumberHolder).value > 0;
|
||||||
@ -4711,7 +4714,7 @@ export class ForceSwitchOutImmunityAbAttr extends AbAttr {
|
|||||||
|
|
||||||
export class ReduceBerryUseThresholdAbAttr extends AbAttr {
|
export class ReduceBerryUseThresholdAbAttr extends AbAttr {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
override canApply(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
|
override canApply(pokemon: Pokemon, passive: boolean, simulated: boolean, args: any[]): boolean {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user