diff --git a/modules/player.lua b/modules/player.lua index 53a88626..1cda56e2 100644 --- a/modules/player.lua +++ b/modules/player.lua @@ -47,7 +47,7 @@ pfUI:RegisterModule("player", function () local hp, hpmax = UnitHealth("player"), UnitHealthMax("player") local power, powermax = UnitMana("player"), UnitManaMax("player") - local cr, cg, cb = pfUI.cache.class_r, pfUI.cache.class_g, pfUI.cache.class_b + local cr, cg, cb = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5 local perc = hp / hpmax pfUI.uf.player.hp.bar:SetMinMaxValues(0, hpmax) diff --git a/pfUI.lua b/pfUI.lua index ad283c86..d518acec 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -105,14 +105,6 @@ pfUI_config = { }, } -pfUI.cache = CreateFrame("Frame",nil,UIParent) -pfUI.cache:RegisterEvent("PLAYER_ENTERING_WORLD") -pfUI.cache:SetScript("OnEvent", function() - _, class = UnitClass("player") - local color = RAID_CLASS_COLORS[class] - pfUI.cache.class_r, pfUI.cache.class_g, pfUI.cache.class_b = (color.r + .5) * .5, (color.g + .5) * .5, (color.b + .5) * .5 - end) - message = function (msg) DEFAULT_CHAT_FRAME:AddMessage("|cffcccc33INFO: |cffffff55"..msg) end