From c2763941367be323eb3111ebf834a9af09d8f57e Mon Sep 17 00:00:00 2001 From: NightKev <34855794+DayKev@users.noreply.github.com> Date: Wed, 24 Jul 2024 04:54:59 -0700 Subject: [PATCH] Clear Battle Data and Summon Data from switched in Pokemon Fixes #2982 --- src/phases.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/phases.ts b/src/phases.ts index 8a1276c95a36..9a642f925081 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -1655,6 +1655,11 @@ export class SwitchSummonPhase extends SummonPhase { pokemonName: getPokemonNameWithAffix(this.getPokemon()) }) ); + // For some reason tags are not properly cleared when switching after reloading a save even though the rest of the summon data is + if (!this.batonPass) { + party[this.fieldIndex].resetBattleData(); + party[this.fieldIndex].resetSummonData(); + } this.summon(); }; if (this.player) {