From 09a345d5a701f182e23a0e4388b2c1ce1c3cdbab Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Thu, 15 May 2025 00:08:49 +0200 Subject: [PATCH] Fixed case of switching out by selecting the Pokemon command --- src/ui/party-ui-handler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/party-ui-handler.ts b/src/ui/party-ui-handler.ts index 198ccdfa870..62c57ea8d37 100644 --- a/src/ui/party-ui-handler.ts +++ b/src/ui/party-ui-handler.ts @@ -807,8 +807,8 @@ export default class PartyUiHandler extends MessageUiHandler { return true; } - // TODO: This case is probably for when a baton is on - if (option === PartyOption.PASS_BATON && !this.selectCallback) { + // This is used when switching out using the Pokemon command (possibly holding a Baton held item). + if ((option === PartyOption.PASS_BATON || option === PartyOption.SEND_OUT) && !this.selectCallback) { (globalScene.getCurrentPhase() as CommandPhase).handleCommand( Command.POKEMON, this.cursor, @@ -818,8 +818,8 @@ export default class PartyUiHandler extends MessageUiHandler { if ( [ - PartyOption.SEND_OUT, - PartyOption.PASS_BATON, + PartyOption.SEND_OUT, // When sending out at the start of battle, or due to an effect + PartyOption.PASS_BATON, // When passing the baton due to the Baton Pass move PartyOption.REVIVE, PartyOption.APPLY, PartyOption.TEACH,