mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-07 00:42:16 +02:00
Changed condition on switch for clarity
This commit is contained in:
parent
9425a877d7
commit
82dfe01576
@ -807,8 +807,11 @@ export default class PartyUiHandler extends MessageUiHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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). In this case there is no callback.
|
||||||
if ((option === PartyOption.PASS_BATON || option === PartyOption.SEND_OUT) && !this.selectCallback) {
|
if (
|
||||||
|
(option === PartyOption.PASS_BATON || option === PartyOption.SEND_OUT) &&
|
||||||
|
this.partyUiMode === PartyUiMode.SWITCH
|
||||||
|
) {
|
||||||
this.clearOptions();
|
this.clearOptions();
|
||||||
(globalScene.getCurrentPhase() as CommandPhase).handleCommand(
|
(globalScene.getCurrentPhase() as CommandPhase).handleCommand(
|
||||||
Command.POKEMON,
|
Command.POKEMON,
|
||||||
|
Loading…
Reference in New Issue
Block a user