Fix stack overflow on game over

This commit is contained in:
Flashfyre 2023-12-29 21:36:26 -05:00
parent 5ef6f2da88
commit 4e841db730

View File

@ -2501,7 +2501,7 @@ export class GameOverPhase extends BattlePhase {
this.scene.ui.clearText(); this.scene.ui.clearText();
this.handleUnlocks(this.scene.getParty()); this.handleUnlocks(this.scene.getParty());
this.scene.reset(); this.scene.reset();
this.scene.newBattle(); this.scene.unshiftPhase(new CheckLoadPhase(this.scene));
this.end(); this.end();
}); });
}); });