Correctly get cursor position in command UI

This commit is contained in:
Xavion3 2025-05-01 18:55:05 +10:00
parent cdcc338afd
commit 4fb320afb5

View File

@ -86,7 +86,7 @@ export default class CommandUiHandler extends UiHandler {
this.teraButton.setFrame(PokemonType[globalScene.getField()[this.fieldIndex].getTeraType()].toLowerCase());
} else {
this.teraButton.setVisible(false);
if (this.cursor === Command.TERA) {
if (this.getCursor() === Command.TERA) {
this.setCursor(Command.FIGHT);
}
}