diff --git a/src/battle-scene.ts b/src/battle-scene.ts index d63b37c77..57febab7f 100644 --- a/src/battle-scene.ts +++ b/src/battle-scene.ts @@ -904,7 +904,9 @@ export default class BattleScene extends Phaser.Scene { case Mode.GAME_MODE_SELECT: this.ui.setOverlayMode(Mode.MENU); break; + case Mode.MENU: case Mode.SETTINGS: + case Mode.ACHIEVEMENTS: this.ui.revertMode(); this.playSound('select'); break; diff --git a/src/ui/ui.ts b/src/ui/ui.ts index b465354f7..c86116427 100644 --- a/src/ui/ui.ts +++ b/src/ui/ui.ts @@ -53,11 +53,6 @@ const noTransitionModes = [ Mode.SETTINGS ]; -const menuModes = [ - Mode.MENU, - Mode.SETTINGS -]; - export default class UI extends Phaser.GameObjects.Container { private mode: Mode; private modeChain: Mode[];