Guard removeTag call in PostApplyBattlerTagRemoveTagAbAttr

This commit is contained in:
Dean 2025-02-24 19:47:20 -08:00
parent 024f90ce55
commit ef0060102a

View File

@ -3303,7 +3303,11 @@ export class PostApplyBattlerTagRemoveTagAbAttr extends PostApplyBattlerTagAbAtt
}
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;
}
}