mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Making logic for return button more expressive
This commit is contained in:
parent
c16f39b063
commit
1e342a5d58
@ -774,10 +774,14 @@ export default class PartyUiHandler extends MessageUiHandler {
|
||||
}
|
||||
this.showOptions();
|
||||
ui.playSelect();
|
||||
} else if (this.partyUiMode === PartyUiMode.FAINT_SWITCH || this.partyUiMode === PartyUiMode.REVIVAL_BLESSING) {
|
||||
ui.playError();
|
||||
} else {
|
||||
return this.processInput(Button.CANCEL);
|
||||
}
|
||||
// Pressing return button
|
||||
if (this.cursor === 6) {
|
||||
if (this.partyUiMode === PartyUiMode.FAINT_SWITCH || this.partyUiMode === PartyUiMode.REVIVAL_BLESSING) {
|
||||
ui.playError();
|
||||
} else {
|
||||
return this.processInput(Button.CANCEL);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user