From a27f1390767da86cf2544078e2106061d81ee8cb Mon Sep 17 00:00:00 2001 From: Eric Mauser Date: Sat, 18 Jun 2016 12:03:32 +0200 Subject: [PATCH] fix player color --- modules/player.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/player.lua b/modules/player.lua index 1cda56e2..3940f9a8 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -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