- Spirit tile null safety: dict.get(key, default) only uses the default when
the key is absent. Server sends nullable ints as JSON null, so the key EXISTS
but the value is null. GDScript returns null which coerces to 0 on a typed int,
collapsing min_r/max_r to 0 and producing zero valid tiles. Fixed by reading
channel range as Variant and substituting the default (1/2) when null.
- Channel range source: read from arch (ArchSpirit), not the Spirit card — the
ArchSpirit defines how far away from itself it can channel Spirits.
- Ruin: auto-placed by server. Clicking a Ruin card now immediately calls
send_play_card without entering CARD_FROM_HAND mode or requiring a tile click.
Added Ruin to the board-click immediate-play guard as well.
- Deselect previous: before entering a new CARD_FROM_HAND selection, explicitly
call _set_mode(NONE) when already in CARD_FROM_HAND or TERRAMORPHA_SELECT.
This guarantees _refresh_hand_selection fires a deselect tween on the old
card before the new card's select tween begins.
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>