mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
parent
0ba8959b11
commit
d1e1879920
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user