mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 14:59:26 +02:00
fixed?
This commit is contained in:
parent
de6946350a
commit
f564770e07
@ -30,6 +30,15 @@ export class CommandPhase extends FieldPhase {
|
|||||||
start() {
|
start() {
|
||||||
super.start();
|
super.start();
|
||||||
|
|
||||||
|
const commandUiHandler = this.scene.ui.handlers[Mode.COMMAND];
|
||||||
|
if (commandUiHandler) {
|
||||||
|
if (this.scene.currentBattle.turn === 1 || commandUiHandler.getCursor() === Command.POKEMON) {
|
||||||
|
commandUiHandler.setCursor(Command.FIGHT);
|
||||||
|
} else {
|
||||||
|
commandUiHandler.setCursor(commandUiHandler.getCursor());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (this.fieldIndex) {
|
if (this.fieldIndex) {
|
||||||
// If we somehow are attempting to check the right pokemon but there's only one pokemon out
|
// If we somehow are attempting to check the right pokemon but there's only one pokemon out
|
||||||
// Switch back to the center pokemon. This can happen rarely in double battles with mid turn switching
|
// Switch back to the center pokemon. This can happen rarely in double battles with mid turn switching
|
||||||
|
@ -68,11 +68,6 @@ export default class CommandUiHandler extends UiHandler {
|
|||||||
messageHandler.movesWindowContainer.setVisible(false);
|
messageHandler.movesWindowContainer.setVisible(false);
|
||||||
messageHandler.message.setWordWrapWidth(1110);
|
messageHandler.message.setWordWrapWidth(1110);
|
||||||
messageHandler.showText(i18next.t("commandUiHandler:actionMessage", { pokemonName: getPokemonNameWithAffix(commandPhase.getPokemon()) }), 0);
|
messageHandler.showText(i18next.t("commandUiHandler:actionMessage", { pokemonName: getPokemonNameWithAffix(commandPhase.getPokemon()) }), 0);
|
||||||
if ((this.scene.currentBattle.turn <= 1 && !this.scene.currentBattle.started) || this.getCursor() === Command.POKEMON) {
|
|
||||||
this.setCursor(Command.FIGHT);
|
|
||||||
} else {
|
|
||||||
this.setCursor(this.getCursor());
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user