mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 16:02:20 +02:00
Removed some redundant playSelect
This commit is contained in:
parent
9addf5cd0a
commit
33c21a0b0d
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user