diff --git a/Client/origin-client/scenes/game/game_screen.gd b/Client/origin-client/scenes/game/game_screen.gd index 3e87897..1dbf511 100644 --- a/Client/origin-client/scenes/game/game_screen.gd +++ b/Client/origin-client/scenes/game/game_screen.gd @@ -1704,7 +1704,7 @@ func _play_damage_animations(state: Dictionary) -> bool: var damaged_iids : Dictionary = {} var seen_iids : Dictionary = {} for player: Dictionary in state.get("players", []): - for unit: Dictionary in ([player.get("archSpirit", {})] + player.get("field", [])): + for unit: Dictionary in ([player.get("archSpirit") or {}] + player.get("field", [])): if unit.is_empty(): continue var iid := str(unit.get("instanceId", "")) var new_hp := int(unit.get("currentHealth", 0)) @@ -3543,7 +3543,7 @@ func _on_state_updated(state: Dictionary) -> void: _camera_oriented = true var bw := float(Game.board_width()) var bh := float(Game.board_height()) - var max_dim := max(bw, bh) + var max_dim :Variant = max(bw, bh) # Auto-scale camera distance: larger boards need more distance to see the whole layout. _cam_distance = clampf(max(max_dim, 10.0) * 1.5, 12.0, 30.0) # Pivot shifts the look-at point toward the local player so their row stays