fix: stabilize battle quick navigation

This commit is contained in:
2026-07-12 23:58:31 +09:00
parent c74b82edda
commit 254dfb2b84
2 changed files with 287 additions and 2 deletions

View File

@@ -6444,7 +6444,6 @@ export class BattleScene extends Phaser.Scene {
const tone = this.terrainTone(terrain);
const text = `${terrainRule.label}: ${this.terrainEffectText(terrain, undefined, 'compact')} · 클릭하면 상세`;
this.showPointerFeedback(tile, tone, text, key, terrainRule.color, terrainRule.passable === false ? 0.16 : 0.1, 0.68);
this.renderTerrainDetail(tile.x, tile.y);
}
private updateMovePointerFeedback(unit: UnitData, tile: { x: number; y: number }, force: boolean) {
@@ -21938,9 +21937,12 @@ export class BattleScene extends Phaser.Scene {
}
private canActivateSideQuickTabs() {
const navigationPhase =
this.phase === 'idle' ||
(this.phase === 'moving' && Boolean(this.selectedUnit) && !this.pendingMove);
return Boolean(
this.shouldRenderSideQuickTabs() &&
this.phase === 'idle' &&
navigationPhase &&
this.activeFaction === 'ally' &&
this.saveSlotPanelObjects.length === 0 &&
this.turnPromptObjects.length === 0 &&