Fix P2 placement: check own arch position, not activePlayerAccountId

activePlayerAccountId stays as P1 for the entire Placement phase, so
P2 always saw "waiting for opponent". Now each player checks whether
their own ArchSpirit has been placed to decide which UI to show.

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-07 12:19:01 -05:00
co-authored by Claude Happy
parent 036738e44d
commit 8445a27101
+11 -11
View File
@@ -1152,17 +1152,17 @@ func _update_hud(state: Dictionary) -> void:
if phase == "Placement":
var my_arch : Dictionary = my.get("archSpirit", {})
if my_arch.is_empty() or my_arch.get("position") == null:
if is_mine:
_phase_lbl.text = "Phase: Placement — click a tile to place your ArchSpirit"
if _mode != Mode.PLACEMENT:
_set_mode(Mode.PLACEMENT)
_clear_highlights()
_highlight_tiles(_valid_placement_tiles(), HI_GREEN)
else:
_phase_lbl.text = "Phase: Placement — waiting for opponent…"
if _mode == Mode.PLACEMENT:
_set_mode(Mode.NONE)
var i_have_placed : bool = not my_arch.is_empty() and my_arch.get("position") != null
if not i_have_placed:
_phase_lbl.text = "Phase: Placement — click a tile to place your ArchSpirit"
if _mode != Mode.PLACEMENT:
_set_mode(Mode.PLACEMENT)
_clear_highlights()
_highlight_tiles(_valid_placement_tiles(), HI_GREEN)
else:
_phase_lbl.text = "Phase: Placement — waiting for opponent…"
if _mode == Mode.PLACEMENT:
_set_mode(Mode.NONE)
# ── Discard viewer ────────────────────────────────────────────────────────────