GDScript dict.get(key, fallback) only returns the fallback when the key
is absent. When a player disconnects the server sets archSpirit to null
(key present, value null), so .get("archSpirit", {}) returns null and
the next .get("instanceId") call crashes with 'Nonexistent function
get in base Nil'.
- get_unit_by_id (~line 276): replace typed Dictionary assignment with
Variant + 'is Dictionary' guard (same pattern already used correctly
in get_all_enemy_units)
- _apply_delta §7 (~line 633): replace typed Dictionary assignment with
Variant + null/type guard before casting; null or non-Dictionary
triggers request_sync() the same as an empty baseline would
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>