This commit is contained in:
ImperialSympathizer 2024-09-27 21:23:37 -04:00
commit 14e2992868

View File

@ -558,6 +558,10 @@ function onGameOver(scene: BattleScene) {
// Revert BGM
scene.playBgm(scene.arena.bgm);
// Clear any leftover battle phases
scene.clearPhaseQueue();
scene.clearPhaseQueueSplice();
// Return enemy Pokemon
const pokemon = scene.getEnemyPokemon();
if (pokemon) {