Fix AI still producing units with captured factories in Nod missions

This commit is contained in:
Oliver Brakmann
2016-09-21 18:58:19 +02:00
parent 92ec538208
commit fca4534525
5 changed files with 10 additions and 10 deletions

View File

@@ -92,7 +92,7 @@ ProduceHarvester = function(building)
end
ProduceInfantry = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
Trigger.AfterDelay(DateTime.Seconds(10), function() ProduceInfantry(building) end)
@@ -116,7 +116,7 @@ ProduceInfantry = function(building)
end
ProduceVehicle = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
ProduceHarvester(building)

View File

@@ -92,7 +92,7 @@ ProduceHarvester = function(building)
end
ProduceInfantry = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
Trigger.AfterDelay(DateTime.Seconds(10), function() ProduceInfantry(building) end)
@@ -116,7 +116,7 @@ ProduceInfantry = function(building)
end
ProduceVehicle = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
ProduceHarvester(building)

View File

@@ -114,7 +114,7 @@ ProduceHarvester = function(building)
end
ProduceInfantry = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
Trigger.AfterDelay(DateTime.Seconds(10), function() ProduceInfantry(building) end)
@@ -138,7 +138,7 @@ ProduceInfantry = function(building)
end
ProduceVehicle = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
ProduceHarvester(building)

View File

@@ -114,7 +114,7 @@ ProduceHarvester = function(building)
end
ProduceInfantry = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
Trigger.AfterDelay(DateTime.Seconds(10), function() ProduceInfantry(building) end)
@@ -138,7 +138,7 @@ ProduceInfantry = function(building)
end
ProduceVehicle = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
ProduceHarvester(building)

View File

@@ -114,7 +114,7 @@ ProduceHarvester = function(building)
end
ProduceInfantry = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
Trigger.AfterDelay(DateTime.Seconds(10), function() ProduceInfantry(building) end)
@@ -138,7 +138,7 @@ ProduceInfantry = function(building)
end
ProduceVehicle = function(building)
if building.IsDead then
if building.IsDead or building.Owner ~= enemy then
return
elseif not CheckForHarvester() then
ProduceHarvester(building)