Fixed captured buildings producing bot controled units

This commit is contained in:
abcdefg30
2015-05-25 01:01:27 +02:00
parent adf1bf30b6
commit dcffbc3f11
4 changed files with 15 additions and 15 deletions

View File

@@ -234,7 +234,7 @@ Tick = function()
Nod.MarkCompletedObjective(NodObjective1)
end
if DateTime.GameTime % DateTime.Seconds(3) == 0 and Barracks.IsInWorld then
if DateTime.GameTime % DateTime.Seconds(3) == 0 and Barracks.IsInWorld and Barracks.Owner == gdi then
checkProduction(GDI)
end
end
@@ -267,8 +267,8 @@ getStartUnits = function()
end)
end
IdleHunt = function(unit)
if not unit.IsDead then
Trigger.OnIdle(unit, unit.Hunt)
end
end
IdleHunt = function(unit)
if not unit.IsDead then
Trigger.OnIdle(unit, unit.Hunt)
end
end