Fix biome selection causing bgm-related crash

This commit is contained in:
Flashfyre committed 2023-10-23 09:00:23 -04:00
1 parent d3323aadce
commit 00f7bc595b
2 files changed
+12 -7

No files matched your search

+2 -2
View File
@@ -453,13 +453,13 @@ export class SelectBiomePhase extends BattlePhase {
start() {
super.start();
this.scene.fadeOutBgm(2000, true);
const currentBiome = this.scene.arena.biomeType;
const setNextBiome = (nextBiome: Biome) => {
if (this.scene.gameMode === GameMode.CLASSIC)
this.scene.unshiftPhase(new PartyHealPhase(this.scene, false));
else
this.scene.fadeOutBgm(2000, true);
this.scene.unshiftPhase(new SwitchBiomePhase(this.scene, nextBiome));
this.end();
};