From f9de9f8c9285c807bdfaa19969390bd871f081c7 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 26 Oct 2008 17:48:34 +0000 Subject: [PATCH] - fixed a bug in the TargetInfo module that cropped up in 3.0 when LibDogTag is not present causing the module to not display --- modules/TargetInfo.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/TargetInfo.lua b/modules/TargetInfo.lua index 3f7c2f5..993c9d4 100644 --- a/modules/TargetInfo.lua +++ b/modules/TargetInfo.lua @@ -1009,13 +1009,14 @@ function TargetInfo.prototype:Update(unit) end if DogTag == nil or self.moduleSettings.line1Tag == '' then - local reactionColor = self:ConvertToHex(UnitReactionColor[self.reaction]) - if (self.tapped) then - reactionColor = self:GetHexColor("Tapped") - end +-- local reactionColor = UnitSelectionColor("target") +-- if (self.tapped) then +-- reactionColor = self:GetHexColor("Tapped") +-- end - local line1 = string.format("|c%s%s|r", reactionColor, self.name or '') - self.frame.targetName:SetText(line1) +-- local line1 = string.format("%s", self.name or '') + self.frame.targetName:SetText(self.name or '') + self.frame.targetName:SetVertexColor(UnitSelectionColor("target")) end if DogTag == nil or self.moduleSettings.line2Tag == '' then