[Bug] Correctly get cursor position in command UI (#5740)

Correctly get cursor position in command UI

Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
This commit is contained in:
Xavion3 2025-05-02 11:18:38 +10:00 committed by GitHub
parent da3b2e0edd
commit 8eeec9511b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);
}
}