Quantcast

Color tagged mobs grey

Scott Sibley [12-11-10 - 06:04]
Color tagged mobs grey
Filename
Modules/UnitTooltip/UnitTooltip.lua
diff --git a/Modules/UnitTooltip/UnitTooltip.lua b/Modules/UnitTooltip/UnitTooltip.lua
index 2286a34..28958c1 100644
--- a/Modules/UnitTooltip/UnitTooltip.lua
+++ b/Modules/UnitTooltip/UnitTooltip.lua
@@ -76,7 +76,11 @@ local r, g, b
 if UnitIsPlayer(unit) then
     r, g, b = ClassColor(unit)
 else
-    r, g, b = UnitSelectionColor(unit)
+	if UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) then
+		r, g, b = .5, .5, .5
+	else
+		r, g, b = UnitSelectionColor(unit)
+	end
 end
 local afk = AFK(unit)
 if afk then
@@ -440,12 +444,13 @@ return select(2, GetRole(unit))
 	[22] = {
 		name = "Zone",
 		left = [[
+-- This doesn't work. Leaving it here for now.
 return "Zone:"
 ]],
 		right = [[
 return select(6, UnitGuildInfo(unit))
 ]],
-		enabled = true
+		enabled = false
 	},
 	[23] = {
 		name = "Location",