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
@@ -119,12 +119,22 @@ func clear_highlight_override(type: String) -> void:
# ── Lifecycle ─────────────────────────────────────────────────────────────────
func _ready() -> void:
_ensure_buses()
_load()
_apply_music()
_apply_sfx()
# ── Internal ──────────────────────────────────────────────────────────────────
func _ensure_buses() -> void:
for bus_name in [BUS_MUSIC, BUS_SFX]:
if AudioServer.get_bus_index(bus_name) < 0:
var idx := AudioServer.bus_count
AudioServer.add_bus()
AudioServer.set_bus_name(idx, bus_name)
AudioServer.set_bus_send(idx, "Master")
func _apply_music() -> void:
var idx := AudioServer.get_bus_index(BUS_MUSIC)
if idx < 0: