Skip to content

Commit

Permalink
[Bug] Fix tags not resetting on switch (pagefaultgames#3119)
Browse files Browse the repository at this point in the history
  • Loading branch information
DayKev authored and Vassiat committed Jul 26, 2024
1 parent a915b42 commit f89b210
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 f89b210

Please sign in to comment.