Fix AutoTarget null crash: add FrozenActorLayer to player, FrozenUnderFog on buildings

AttackMoveActivity scanned for frozen actors on a player with no
FrozenActorLayer -> NullReferenceException mid-match. Verified by a full
AI-vs-AI arena match running to completion (BotA won at tick ~10500).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
type-two 2026-07-25 18:42:50 +10:00
parent 975f305fa1
commit 1939f868b0
2 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,8 @@ djgrunt:
^EconBuilding:
Inherits: ^EconSprite
-HiddenUnderFog:
FrozenUnderFog:
WithDamageOverlay:
FireWarheadsOnDeath:
Weapon: BuildingExplode

View File

@ -4,6 +4,7 @@
player:
Inherits: ^baseplayer
FrozenActorLayer:
DeveloperMode:
PlayerResources:
DefaultCash: 5000