diff --git a/src/game/scenes/BattleScene.ts b/src/game/scenes/BattleScene.ts index ca18f88..c782cd1 100644 --- a/src/game/scenes/BattleScene.ts +++ b/src/game/scenes/BattleScene.ts @@ -3182,7 +3182,21 @@ export class BattleScene extends Phaser.Scene { return; } - this.cancelAttackTargeting(); + if (this.cancelAttackTargeting()) { + return; + } + + if (this.cancelPendingMove()) { + return; + } + + if (this.commandMenuObjects.length > 0) { + soundDirector.playSelect(); + this.hideCommandMenu(); + this.phase = 'idle'; + this.selectedUnit = undefined; + this.refreshUnitLegibilityStyles(); + } }); this.input.keyboard?.on('keydown-SPACE', (event: KeyboardEvent) => { if (this.activeFaction !== 'enemy' || this.fastForwardHeld) {