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,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;
}