Statistics: Posted by Crotalus — 12 May 2014, 15:29
CheckFractionComplete = function(self, unitBeingBuilt, threadCount)
-- rebuild bonus check 1 [159]
-- This code checks if the unit is allowed to be accelerate-built. If not the unit is destroyed (for lack
-- of a SetFractionComplete() function). Added by brute51
local fraction = unitBeingBuilt:GetFractionComplete()
if fraction > (self.InitialFractionComplete or 0.01) then
unitBeingBuilt:OnRebuildBonusIsIllegal()
end
self.InitialFractionComplete = nil
end,
Statistics: Posted by Crotalus — 12 May 2014, 09:25