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

@@ -295,9 +295,9 @@ checkProduction = function(player)
end
end
if #UnitsType > 0 then
if (type == 'jeep' or type == 'mtnk') and not Factory.IsDead then
if (type == 'jeep' or type == 'mtnk') and not Factory.IsDead and Factory.Owner == gdi then
Factory.Build(UnitsType)
elseif (type == 'e1' or type == 'e2') and not Barracks.IsDead then
elseif (type == 'e1' or type == 'e2') and not Barracks.IsDead and Barracks.Owner == gdi then
Barracks.Build(UnitsType)
end
end