Fix issues in 'intervention' mission

* Fix an InvalidOperationException due to querying traits on a dead
  actor (fixes #5530)
* remove a gap in the SAM belt that shouldn't be there
This commit is contained in:
Oliver Brakmann
2014-06-02 15:27:50 +02:00
parent 3566abeba4
commit 3586f9ad70
2 changed files with 8 additions and 2 deletions

View File

@@ -2261,6 +2261,8 @@ Rules:
SAM:
Building:
Power: -5
RevealsShroud:
Range: 7c0
TSLA:
Building:
Power: -50
@@ -2328,6 +2330,8 @@ Sequences:
VoxelSequences:
Weapons:
Nike:
Range: 9c0
Maverick:
Warhead:
Damage: 175

View File

@@ -192,8 +192,10 @@ SetupWorld = function()
Utils.Do(SovietHarvesters, function(harvester)
Actor.OnDamaged(harvester, function(h)
Team.Do(harvesterGuard, function(g)
Actor.Stop(g)
Actor.AttackMove(g, h.Location, 3)
if not Actor.IsDead(g) then
Actor.Stop(g)
Actor.AttackMove(g, h.Location, 3)
end
end)
end)
end)