Skip to content

Commit

Permalink
Clear Battle Data and Summon Data from switched in Pokemon
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev committed Jul 24, 2024
1 parent c37527c commit c276394
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/phases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c276394

Please sign in to comment.