7ab11e6f46 Fix defense restore order + add StateVersion for client sync
Defense restore bug fix:
- EndTurn previously restored defense for the ENDING player's units (wrong)
- Per §6.0 start-of-turn order: defense restores for the player whose turn is STARTING
- IsExhausted still resets for the ending player (they finished acting)
- This prevents opponents attacking into fully-restored defense every turn

StateVersion on GameStateDto:
- NextActionSequence from GameState exposed as StateVersion in every state push
- Clients track lastSeen StateVersion; if push arrives with version > lastSeen+1,
  client calls game.get_state for a full board refresh
- game.get_state already returns full state — no additional server work needed

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>
2026-02-26 08:17:29 -05:00
S
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%