Skip to content

Commit

Permalink
Fix tags not resetting on switch
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev committed Jul 24, 2024
1 parent c37527c commit 2071a49
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())
})
);
// 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) {
Expand Down

0 comments on commit 2071a49

Please sign in to comment.