From 8445a27101233e411082db5133d8a112a2ca4fe5 Mon Sep 17 00:00:00 2001 From: dingo Date: Sat, 7 Mar 2026 12:19:01 -0500 Subject: [PATCH] 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 Co-Authored-By: Happy --- .../origin-client/scenes/game/game_screen.gd | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Client/origin-client/scenes/game/game_screen.gd b/Client/origin-client/scenes/game/game_screen.gd index 2ef3130..b76a9f5 100644 --- a/Client/origin-client/scenes/game/game_screen.gd +++ b/Client/origin-client/scenes/game/game_screen.gd @@ -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 ────────────────────────────────────────────────────────────