Quantcast

Color bars grey when unit is a tagged mob

Scott Sibley [12-11-10 - 06:07]
Color bars grey when unit is a tagged mob
Filename
Modules/Bars/Bars.lua
diff --git a/Modules/Bars/Bars.lua b/Modules/Bars/Bars.lua
index 449cafb..d3d01f8 100644
--- a/Modules/Bars/Bars.lua
+++ b/Modules/Bars/Bars.lua
@@ -64,7 +64,11 @@ return UnitHealth(unit)
 if UnitIsPlayer(unit) then
     return ClassColor(unit)
 else
-    return UnitSelectionColor(unit)
+	if UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit)
+		return .5, .5, .5
+	else
+		return UnitSelectionColor(unit)
+	end
 end
 ]],
 		height = 6,