Making logic for return button more expressive

This commit is contained in:
Wlowscha 2025-05-12 22:55:44 +02:00
parent c16f39b063
commit 1e342a5d58
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -774,11 +774,15 @@ export default class PartyUiHandler extends MessageUiHandler {
} }
this.showOptions(); this.showOptions();
ui.playSelect(); ui.playSelect();
} else if (this.partyUiMode === PartyUiMode.FAINT_SWITCH || this.partyUiMode === PartyUiMode.REVIVAL_BLESSING) { }
// Pressing return button
if (this.cursor === 6) {
if (this.partyUiMode === PartyUiMode.FAINT_SWITCH || this.partyUiMode === PartyUiMode.REVIVAL_BLESSING) {
ui.playError(); ui.playError();
} else { } else {
return this.processInput(Button.CANCEL); return this.processInput(Button.CANCEL);
} }
}
return true; return true;
} }
if (button === Button.CANCEL) { if (button === Button.CANCEL) {