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

@@ -152,7 +152,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
@@ -234,8 +234,8 @@ InsertNodUnits = function()
Reinforcements.Reinforce(Nod, { "mcv" }, { McvEntry.Location, McvRally.Location })
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