Update src/ui/starter-select-ui-handler.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
Ori shalhon 2025-01-06 08:46:19 +01:00 committed by GitHub
parent c640e073b6
commit 451e4f01b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1400,13 +1400,11 @@ export default class StarterSelectUiHandler extends MessageUiHandler {
success = this.filterBar.decDropDownCursor();
} else if (this.filterBarCursor === this.filterBar.numFilters - 1 ) {
// UP from the last filter, move to start button
this.setFilterMode(false);
this.cursorObj.setVisible(false);
if (this.starterSpecies.length > 0) {
this.setFilterMode(false);
this.cursorObj.setVisible(false);
this.startCursorObj.setVisible(true);
} else {
this.setFilterMode(false);
this.cursorObj.setVisible(false);
this.randomCursorObj.setVisible(true);
}
success = true;