mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 09:19:31 +02:00
Added check for ability's presence mid battle
This commit is contained in:
parent
2e7bfb031b
commit
bf3a2db47c
@ -978,7 +978,7 @@ class AromaVeilTag extends ArenaTag {
|
||||
|
||||
apply(arena: Arena, args: any[]): boolean {
|
||||
const targetPokemon = args[2];
|
||||
if (this.protectedTags.includes(args[1] as BattlerTagType)) {
|
||||
if (this.protectedTags.includes(args[1] as BattlerTagType) && this.lapse(arena)) {
|
||||
(args[0] as Utils.BooleanHolder).value = false;
|
||||
arena.scene.queueMessage(i18next.t("abilityTriggers:aromaVeilImmunity", {
|
||||
pokemonNameWithAffix: targetPokemon,
|
||||
|
Loading…
Reference in New Issue
Block a user