Fix biome selection causing bgm-related crash
This commit is contained in:
1 parent
d3323aadce
commit
00f7bc595b
2 files changed
+12
-7
No files matched your search
@@ -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();
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user