buff: draw backdrop in update function if required

This commit is contained in:
shagu
2020-06-06 22:05:49 +02:00
parent d3bd6679f5
commit 661e4f1652
+5 -3
View File
@@ -52,6 +52,11 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
buff.mode = buff.btype
buff.texture:SetTexture(GetPlayerBuffTexture(buff.bid))
if not buff.backdrop then
CreateBackdrop(buff)
CreateBackdropShadow(buff)
end
if buff.btype == "HARMFUL" then
local dtype = GetPlayerBuffDispelType(buff.bid)
if dtype == "Magic" then
@@ -292,9 +297,6 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function ()
buff:ClearAllPoints()
buff:SetPoint("TOPRIGHT", relFrame, "TOPRIGHT",offsetX, offsetY)
CreateBackdrop(buff)
CreateBackdropShadow(buff)
buff.timer:SetFont(pfUI.font_default, fontsize, "OUTLINE")
buff.stacks:SetFont(pfUI.font_default, fontsize+1, "OUTLINE")