Forged Alliance Forever Forums
Moderator: keyser
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,
Users browsing this forum: No registered users and 1 guest