Fix OnAllKilled crash for allies05b and allies05c

This commit is contained in:
JovialFeline
2023-04-18 18:40:13 -04:00
committed by abcdefg30
parent 0d36bc19c6
commit 90bb2db349
2 changed files with 4 additions and 2 deletions

View File

@@ -94,7 +94,8 @@ ActivateAI = function()
Trigger.AfterDelay(DateTime.Minutes(1), ProduceUSSRVehicles)
Trigger.AfterDelay(DateTime.Minutes(2), ProduceAircraft)
Trigger.OnAllKilled(SovietProduction, function()
local intactProduction = Utils.Where(SovietProduction, function(self) return not self.IsDead end)
Trigger.OnAllKilled(intactProduction, function()
Utils.Do(USSR.GetGroundAttackers(), IdleHunt)
end)
end

View File

@@ -94,7 +94,8 @@ ActivateAI = function()
Trigger.AfterDelay(DateTime.Minutes(2), ProduceUSSRVehicles)
Trigger.AfterDelay(DateTime.Minutes(4), ProduceAircraft)
Trigger.OnAllKilled(SovietProduction, function()
local intactProduction = Utils.Where(SovietProduction, function(self) return not self.IsDead end)
Trigger.OnAllKilled(intactProduction, function()
Utils.Do(USSR.GetGroundAttackers(), IdleHunt)
end)
end