[P2] Removed incorrect calls to `resetBattleData` on switchout (#4828)
This commit is contained in:
parent
c54d21c313
commit
329e43ad48
|
@ -4029,8 +4029,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||
this.resetTurnData();
|
||||
if (clearEffects) {
|
||||
this.destroySubstitute();
|
||||
this.resetSummonData();
|
||||
this.resetBattleData();
|
||||
this.resetSummonData(); // this also calls `resetBattleSummonData`
|
||||
}
|
||||
if (hideInfo) {
|
||||
this.hideInfo();
|
||||
|
|
|
@ -138,7 +138,6 @@ export class SwitchSummonPhase extends SummonPhase {
|
|||
switchedInPokemon.setAlpha(0.5);
|
||||
}
|
||||
} else {
|
||||
switchedInPokemon.resetBattleData();
|
||||
switchedInPokemon.resetSummonData();
|
||||
}
|
||||
this.summon();
|
||||
|
|
Loading…
Reference in New Issue