From 26886d195a714f31c4add8f17e0bfbee70f74a15 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 27 Sep 2008 05:20:59 +0000 Subject: [PATCH] - fixed TargetOfTarget module's error message as of wotlk beta 8962 --- modules/TargetOfTarget.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/modules/TargetOfTarget.lua b/modules/TargetOfTarget.lua index 8ce5cce..f675542 100644 --- a/modules/TargetOfTarget.lua +++ b/modules/TargetOfTarget.lua @@ -457,13 +457,20 @@ function TargetOfTarget.prototype:Update() local health = UnitHealth(self.unit) local maxHealth = UnitHealthMax(self.unit) local healthPercentage = math.floor( (health/maxHealth)*100 ) - - local rColor = UnitReactionColor[reaction or 5] - self.frame.totName:SetTextColor(rColor.r, rColor.g, rColor.b, 0.9) + 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.totHealth:SetTextColor(rColor.r, rColor.g, rColor.b, 0.9) + end + self.frame.totName:SetText(name) - - self.frame.totHealth:SetTextColor(rColor.r, rColor.g, rColor.b, 0.9) self.frame.totHealth:SetText(healthPercentage .. "%") self.frame.bar.texture:SetVertexColor(self:GetColor(unitClass, 0.7))