mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Clearing options when switching out
This commit is contained in:
parent
09a345d5a7
commit
9425a877d7
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user