From 8eeec9511bc5d2eed57ac96d6bbc81677b2cfe30 Mon Sep 17 00:00:00 2001 From: Xavion3 Date: Fri, 2 May 2025 11:18:38 +1000 Subject: [PATCH] [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> --- src/ui/command-ui-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/command-ui-handler.ts b/src/ui/command-ui-handler.ts index 57c5b5a82a2..ff27e9c41c0 100644 --- a/src/ui/command-ui-handler.ts +++ b/src/ui/command-ui-handler.ts @@ -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); } }