Merge pull request #10060 from abcdefg30/06crash
Add IsDead checks to gdi06
This commit is contained in:
@@ -125,14 +125,18 @@ WorldLoaded = function()
|
|||||||
|
|
||||||
Trigger.OnKilled(AttackTrigger2, function()
|
Trigger.OnKilled(AttackTrigger2, function()
|
||||||
Utils.Do(FlameSquad, function(unit)
|
Utils.Do(FlameSquad, function(unit)
|
||||||
unit.Patrol(FlameSquadRoute, false)
|
if not unit.IsDead then
|
||||||
|
unit.Patrol(FlameSquadRoute, false)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Trigger.OnEnteredFootprint(AttackCellTriggerActivator, function(a, id)
|
Trigger.OnEnteredFootprint(AttackCellTriggerActivator, function(a, id)
|
||||||
if a.Owner == player then
|
if a.Owner == player then
|
||||||
Utils.Do(AttackUnits, function(unit)
|
Utils.Do(AttackUnits, function(unit)
|
||||||
unit.AttackMove(waypoint10.Location)
|
if not unit.IsDead then
|
||||||
|
unit.AttackMove(waypoint10.Location)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
Trigger.RemoveFootprintTrigger(id)
|
Trigger.RemoveFootprintTrigger(id)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user