From a59865afd53730863b95675b3dcb6c6ec88cbe9a Mon Sep 17 00:00:00 2001 From: Frutescens Date: Tue, 2 Jul 2024 15:53:37 -0700 Subject: [PATCH] Fixed Github pages issue --- src/ui/summary-ui-handler.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ui/summary-ui-handler.ts b/src/ui/summary-ui-handler.ts index 17012182496..b6525ae325d 100644 --- a/src/ui/summary-ui-handler.ts +++ b/src/ui/summary-ui-handler.ts @@ -397,7 +397,7 @@ export default class SummaryUiHandler extends UiHandler { } const ui = this.getUi(); - + const fromPartyMode = ui.handlers[Mode.PARTY].active; let success = false; let error = false; @@ -485,7 +485,8 @@ export default class SummaryUiHandler extends UiHandler { if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) { this.hideMoveSelect(); } else { - if (ui.getMessageHandler().onActionInput) { + + if (!fromPartyMode) { ui.setMode(Mode.MESSAGE); } else { ui.setMode(Mode.PARTY); @@ -499,7 +500,7 @@ export default class SummaryUiHandler extends UiHandler { case Button.DOWN: if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) { break; - } else if (ui.getMessageHandler().onActionInput) { + } else if (!fromPartyMode) { break; } const isDown = button === Button.DOWN;