Fix the Build function in gdi04b
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user