Clearing options when switching out

This commit is contained in:
Wlowscha 2025-05-15 00:25:58 +02:00
parent 09a345d5a7
commit 9425a877d7
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -809,6 +809,7 @@ export default class PartyUiHandler extends MessageUiHandler {
// This is used when switching out using the Pokemon command (possibly holding a Baton held item). // 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) { if ((option === PartyOption.PASS_BATON || option === PartyOption.SEND_OUT) && !this.selectCallback) {
this.clearOptions();
(globalScene.getCurrentPhase() as CommandPhase).handleCommand( (globalScene.getCurrentPhase() as CommandPhase).handleCommand(
Command.POKEMON, Command.POKEMON,
this.cursor, this.cursor,