From 5ad2bd237d9e72e2f628779bf8c2ab8de264abc0 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Wed, 14 May 2025 23:57:34 +0200 Subject: [PATCH] Fixed Baton Pass; logging for testing --- src/ui/party-ui-handler.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ui/party-ui-handler.ts b/src/ui/party-ui-handler.ts index 15509703c53..198ccdfa870 100644 --- a/src/ui/party-ui-handler.ts +++ b/src/ui/party-ui-handler.ts @@ -714,6 +714,10 @@ export default class PartyUiHandler extends MessageUiHandler { return true; } + console.log(PartyUiMode[this.partyUiMode]); + console.log(PartyOption[option]); + console.log(this.selectCallback); + // TODO: Careful about using success for the return values here. Find a better way // PartyOption.ALL, and options specific to the mode (held items) if (this.partyUiMode === PartyUiMode.MODIFIER_TRANSFER) { @@ -803,7 +807,8 @@ export default class PartyUiHandler extends MessageUiHandler { return true; } - if (option === PartyOption.PASS_BATON) { + // TODO: This case is probably for when a baton is on + if (option === PartyOption.PASS_BATON && !this.selectCallback) { (globalScene.getCurrentPhase() as CommandPhase).handleCommand( Command.POKEMON, this.cursor, @@ -814,7 +819,7 @@ export default class PartyUiHandler extends MessageUiHandler { if ( [ PartyOption.SEND_OUT, - // PartyOption.PASS_BATON, TODO: figure out if this is processed differently + PartyOption.PASS_BATON, PartyOption.REVIVE, PartyOption.APPLY, PartyOption.TEACH,