From b3e6c20a3522189467898a0caf188cee689dbd1f Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Tue, 13 May 2025 22:13:49 +0200 Subject: [PATCH] Moving edge case for release option into processReleaseOption --- src/ui/party-ui-handler.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ui/party-ui-handler.ts b/src/ui/party-ui-handler.ts index e9dab3c6743..257090cf561 100644 --- a/src/ui/party-ui-handler.ts +++ b/src/ui/party-ui-handler.ts @@ -440,6 +440,10 @@ export default class PartyUiHandler extends MessageUiHandler { const ui = this.getUi(); this.clearOptions(); ui.playSelect(); + if (this.partyUiMode === PartyUiMode.RELEASE) { + this.doRelease(this.cursor); + return true; + } if (this.cursor >= globalScene.currentBattle.getBattlerCount() || !pokemon.isAllowedInBattle()) { this.blockInput = true; this.showText( @@ -708,7 +712,7 @@ export default class PartyUiHandler extends MessageUiHandler { return this.processRenameOption(pokemon); } // TODO: Figure out why we need this edge case - if (option === PartyOption.RELEASE && this.partyUiMode !== PartyUiMode.RELEASE) { + if (option === PartyOption.RELEASE) { return this.processReleaseOption(pokemon); } if (option === PartyOption.SELECT) { @@ -764,10 +768,6 @@ export default class PartyUiHandler extends MessageUiHandler { this.clearOptions(); return true; } - if (option === PartyOption.RELEASE) { - this.doRelease(this.cursor); - return true; - } const selectCallback = this.selectCallback; this.selectCallback = null; selectCallback(this.cursor, option);