Files
sor/Client/origin-client
94f39be8a7 Fix: card double-click via remove_child before queue_free + frame dedup guard
Root cause: _rebuild_hand used queue_free() alone, which keeps nodes in the
GUI tree (and receiving input events) until end-of-frame. When two state
updates arrive in the same frame, stale and live CardWidget instances overlap
at the same screen position — both emit card_pressed → _on_hand_card_clicked
fires twice per physical click, alternating select/deselect.

Fix 1 (root cause): _rebuild_hand now calls remove_child(c) before queue_free(c),
so the old widget is immediately detached from the HBoxContainer and can no
longer receive GUI input.

Fix 2 (defensive): _on_hand_card_clicked deduplicates calls within the same
engine frame for the same card instance using Engine.get_process_frames().

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>
2026-03-08 15:34:23 -04:00
..
2026-03-02 08:37:51 -05:00
2026-02-21 17:47:52 -05:00
2026-02-21 17:47:52 -05:00
2026-02-21 17:47:52 -05:00
2026-03-01 10:27:12 -05:00
2026-02-21 17:47:52 -05:00
2026-02-21 17:47:52 -05:00
2026-03-01 10:27:12 -05:00