fix(hand): scroll throttle, deselect on spin/click-outside for all card modes

- Throttle hand scroll to one step per 150 ms so each wheel tick advances exactly one card
- Deselect selected card when clicking outside the hand area (deferred flag pattern so board clicks still play the card)
- Extend spin and click-outside deselect to cover TERRAMORPHA_SELECT and card-triggered ABILITY_TARGET (Repentance/Instinct), not just CARD_FROM_HAND
- Show Repentance/Instinct cards as visually selected in hand when in ABILITY_TARGET mode
- Drop stale spectator state_update pushes from wrong sessions
- Auto-create missing audio buses on Settings._ready to avoid bus-not-found errors

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-04-15 09:31:30 -04:00
co-authored by Claude Happy
parent 573d8cf727
commit afa9e73489
4 changed files with 63 additions and 12 deletions
+6
View File
@@ -603,6 +603,12 @@ func _on_server_push(type: String, payload: Variant) -> void:
var d := payload as Dictionary
var s := d.get("state", {}) as Dictionary
if not s.is_empty():
# Drop stale spectator pushes that belong to a session we already left.
var update_sid : String = str(s.get("sessionId", ""))
if not session_id.is_empty() and update_sid != session_id:
if debug_output:
print("[Game] PUSH state_update IGNORED (wrong session): ", update_sid)
return
_state_version = int(s.get("stateVersion", -1))
if debug_output:
print("[Game] PUSH state_update phase=", s.get("phase","?"),