- fixed TargetOfTarget module's error message as of wotlk beta 8962

This commit is contained in:
Parnic
2008-09-27 05:20:59 +00:00
parent 8bba9b5926
commit 26886d195a

View File

@ -458,12 +458,19 @@ function TargetOfTarget.prototype:Update()
local maxHealth = UnitHealthMax(self.unit)
local healthPercentage = math.floor( (health/maxHealth)*100 )
if IceHUD.WowVer >= 30000 then
self.frame.totName:SetTextColor(UnitSelectionColor(self.unit))
self.frame.totName:SetAlpha(0.9)
self.frame.totHealth:SetTextColor(UnitSelectionColor(self.unit))
self.frame.totHealth:SetAlpha(0.9)
else
local rColor = UnitReactionColor[reaction or 5]
self.frame.totName:SetTextColor(rColor.r, rColor.g, rColor.b, 0.9)
self.frame.totName:SetText(name)
self.frame.totHealth:SetTextColor(rColor.r, rColor.g, rColor.b, 0.9)
end
self.frame.totName:SetText(name)
self.frame.totHealth:SetText(healthPercentage .. "%")
self.frame.bar.texture:SetVertexColor(self:GetColor(unitClass, 0.7))