Quantcast

Change health bar color to match name line

Scott Sibley [10-03-10 - 01:56]
Change health bar color to match name line
Filename
Modules/Bars/Bars.lua
diff --git a/Modules/Bars/Bars.lua b/Modules/Bars/Bars.lua
index f90c41b..4b57e07 100644
--- a/Modules/Bars/Bars.lua
+++ b/Modules/Bars/Bars.lua
@@ -61,11 +61,10 @@ return UnitHealth(unit)
 		min = "return 0",
 		max = "assert(unit); return UnitHealthMax(unit)",
 		color1 = [[
-if true or self.visitor.visitor.db.profile.classColors then
+if UnitIsPlayer(unit) then
     return ClassColor(unit)
 else
-    local min, max = UnitHealth(unit), UnitHealthMax(unit)
-    return HPColor(min, max)
+    return UnitSelectionColor(unit)
 end
 ]],
 		height = 6,