Fix the Build function in gdi04b

This commit is contained in:
abcdefg30
2020-01-07 22:20:07 +01:00
committed by reaperrr
parent c15a555cff
commit abfb28a4f3

View File

@@ -60,6 +60,10 @@ SendGDIReinforcements = function()
end end
Build = function(unitTypes, repeats, func) Build = function(unitTypes, repeats, func)
if HandOfNod.IsDead then
return
end
local after = function(units) local after = function(units)
Utils.Do(units, func) Utils.Do(units, func)
if repeats then if repeats then
@@ -69,7 +73,7 @@ Build = function(unitTypes, repeats, func)
end end
end end
if not HandOfNod.Build(unitTypes, innerFunc) then if not HandOfNod.Build(unitTypes, after) then
Trigger.AfterDelay(DateTime.Seconds(5), function() Trigger.AfterDelay(DateTime.Seconds(5), function()
Build(unitTypes, repeats, func) Build(unitTypes, repeats, func)
end) end)