94f39be8a775935b6242f3610d2cb9f402f15114
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>
Description
No description provided
53 MiB
Languages
C#
52.7%
HTML
24.9%
GDScript
21.2%
CSS
0.8%
Python
0.3%
Other
0.1%