mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-06 08:22:16 +02:00
Correctly get cursor position in command UI
This commit is contained in:
parent
cdcc338afd
commit
4fb320afb5
@ -86,7 +86,7 @@ export default class CommandUiHandler extends UiHandler {
|
|||||||
this.teraButton.setFrame(PokemonType[globalScene.getField()[this.fieldIndex].getTeraType()].toLowerCase());
|
this.teraButton.setFrame(PokemonType[globalScene.getField()[this.fieldIndex].getTeraType()].toLowerCase());
|
||||||
} else {
|
} else {
|
||||||
this.teraButton.setVisible(false);
|
this.teraButton.setVisible(false);
|
||||||
if (this.cursor === Command.TERA) {
|
if (this.getCursor() === Command.TERA) {
|
||||||
this.setCursor(Command.FIGHT);
|
this.setCursor(Command.FIGHT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user