fix player color

This commit is contained in:
Eric Mauser
2016-06-18 12:03:32 +02:00
parent a2ddbb7c35
commit a27f139076
+2
View File
@@ -46,6 +46,8 @@ pfUI:RegisterModule("player", function ()
local hp, hpmax = UnitHealth("player"), UnitHealthMax("player")
local power, powermax = UnitMana("player"), UnitManaMax("player")
_, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]
local cr, cg, cb = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5
local perc = hp / hpmax