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,23 +828,12 @@ export default class PartyUiHandler extends MessageUiHandler {
const selectCallback = this.selectCallback; const selectCallback = this.selectCallback;
this.selectCallback = null; this.selectCallback = null;
selectCallback(this.cursor, option); selectCallback(this.cursor, option);
}
// 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 true;
} }
return false;
}
processOptionMenuInput(button: Button) { processOptionMenuInput(button: Button) {
const ui = this.getUi(); const ui = this.getUi();
const option = this.options[this.optionsCursor]; const option = this.options[this.optionsCursor];