Update selectWithTera override

This commit is contained in:
Sirz Benjie 2025-04-15 10:05:32 -05:00
parent a4a2b9ccec
commit f450fcbe5b
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -76,14 +76,14 @@ export class MoveHelper extends GameManagerHelper {
const movePosition = getMovePosition(this.game.scene, pkmIndex, move); const movePosition = getMovePosition(this.game.scene, pkmIndex, move);
this.game.scene.getPlayerParty()[pkmIndex].isTerastallized = false; this.game.scene.getPlayerParty()[pkmIndex].isTerastallized = false;
this.game.onNextPrompt("CommandPhase", Mode.COMMAND, () => { this.game.onNextPrompt("CommandPhase", UiMode.COMMAND, () => {
this.game.scene.ui.setMode( this.game.scene.ui.setMode(
Mode.FIGHT, UiMode.FIGHT,
(this.game.scene.getCurrentPhase() as CommandPhase).getFieldIndex(), (this.game.scene.getCurrentPhase() as CommandPhase).getFieldIndex(),
Command.TERA, Command.TERA,
); );
}); });
this.game.onNextPrompt("CommandPhase", Mode.FIGHT, () => { this.game.onNextPrompt("CommandPhase", UiMode.FIGHT, () => {
(this.game.scene.getCurrentPhase() as CommandPhase).handleCommand(Command.TERA, movePosition, false); (this.game.scene.getCurrentPhase() as CommandPhase).handleCommand(Command.TERA, movePosition, false);
}); });