mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-20 06:19:29 +02:00
Removed incorrect calls to resetBattleData
This commit is contained in:
parent
00f7fd47df
commit
4e540d0c10
@ -4029,8 +4029,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
this.resetTurnData();
|
this.resetTurnData();
|
||||||
if (clearEffects) {
|
if (clearEffects) {
|
||||||
this.destroySubstitute();
|
this.destroySubstitute();
|
||||||
this.resetSummonData();
|
this.resetSummonData(); // this also calls `resetBattleSummonData`
|
||||||
this.resetBattleData();
|
|
||||||
}
|
}
|
||||||
if (hideInfo) {
|
if (hideInfo) {
|
||||||
this.hideInfo();
|
this.hideInfo();
|
||||||
|
@ -138,7 +138,6 @@ export class SwitchSummonPhase extends SummonPhase {
|
|||||||
switchedInPokemon.setAlpha(0.5);
|
switchedInPokemon.setAlpha(0.5);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switchedInPokemon.resetBattleData();
|
|
||||||
switchedInPokemon.resetSummonData();
|
switchedInPokemon.resetSummonData();
|
||||||
}
|
}
|
||||||
this.summon();
|
this.summon();
|
||||||
|
Loading…
Reference in New Issue
Block a user