buff: always restore buff border color

This commit is contained in:
shagu
2020-07-31 21:58:33 +02:00
parent 09498bc6cb
commit 105bc38ab4
+4
View File
@@ -5,6 +5,8 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
TemporaryEnchantFrame:Hide()
TemporaryEnchantFrame:UnregisterAllEvents()
local br, bg, bb, ba = GetStringColor(pfUI_config.appearance.border.color)
local function RefreshBuffButton(buff)
if buff.btype == "HELPFUL" then
if C.buffs.separateweapons == "1" then
@@ -70,6 +72,8 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
else
buff.backdrop:SetBackdropBorderColor(1,0,0,1)
end
else
buff.backdrop:SetBackdropBorderColor(br,bg,bb,ba)
end
else
buff:Hide()