Removed some redundant playSelect

This commit is contained in:
Wlowscha 2025-05-15 23:14:45 +02:00
parent 9addf5cd0a
commit 33c21a0b0d
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04

View File

@ -828,21 +828,10 @@ export default class PartyUiHandler extends MessageUiHandler {
const selectCallback = this.selectCallback;
this.selectCallback = null;
selectCallback(this.cursor, option);
return true;
}
// TODO: Figure out better what this option is supposed to do---presumably we want a callback
if (option === PartyOption.SELECT) {
ui.playSelect();
}
if (
this.partyUiMode !== PartyUiMode.MODIFIER &&
this.partyUiMode !== PartyUiMode.TM_MODIFIER &&
this.partyUiMode !== PartyUiMode.MOVE_MODIFIER
) {
ui.playSelect();
}
return true;
return false;
}
processOptionMenuInput(button: Button) {