mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-20 23:32:19 +02:00
Guard removeTag call in PostApplyBattlerTagRemoveTagAbAttr
This commit is contained in:
parent
024f90ce55
commit
ef0060102a
@ -3303,7 +3303,11 @@ export class PostApplyBattlerTagRemoveTagAbAttr extends PostApplyBattlerTagAbAtt
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override applyPostApplyBattlerTag(pokemon: Pokemon, passive: boolean, simulated: boolean, tag: BattlerTag, args: any[]): boolean {
|
public override applyPostApplyBattlerTag(pokemon: Pokemon, passive: boolean, simulated: boolean, tag: BattlerTag, args: any[]): boolean {
|
||||||
return pokemon.removeTag(tag.tagType);
|
if (this.immuneTags.includes(tag.tagType)) {
|
||||||
|
return pokemon.removeTag(tag.tagType);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user