From 55f68c0ce6a233bdd3314ee88823a1db2902c81d Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 27 Apr 2024 15:52:21 -0400 Subject: [PATCH] Fix DNA splicer exploit --- src/ui/summary-ui-handler.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/summary-ui-handler.ts b/src/ui/summary-ui-handler.ts index bf5a12b3f..44003a7c8 100644 --- a/src/ui/summary-ui-handler.ts +++ b/src/ui/summary-ui-handler.ts @@ -376,7 +376,10 @@ export default class SummaryUiHandler extends UiHandler { success = true; } } else if (button === Button.CANCEL) { - ui.setMode(Mode.PARTY); + if (this.summaryUiMode === SummaryUiMode.LEARN_MOVE) + this.hideMoveSelect(); + else + ui.setMode(Mode.PARTY); success = true; } else { const pages = Utils.getEnumValues(Page);