From d1e18799203824a394fcb093506b6fa4d6367f86 Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Wed, 24 Jul 2024 07:27:37 -0700 Subject: [PATCH] [Bug] Fix tags not resetting on switch (#3119) Fixes #2982 --- src/phases.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/phases.ts b/src/phases.ts index 8a1276c95a3..33acececf90 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -1655,6 +1655,11 @@ export class SwitchSummonPhase extends SummonPhase { pokemonName: getPokemonNameWithAffix(this.getPokemon()) }) ); + // Ensure improperly persisted summon data (such as tags) is cleared upon switching + if (!this.batonPass) { + party[this.fieldIndex].resetBattleData(); + party[this.fieldIndex].resetSummonData(); + } this.summon(); }; if (this.player) {