From 6a8549e103ba0a32edeab17767fcd763e26c0d6f Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 7 Jun 2020 12:18:30 +0200 Subject: [PATCH] buff: make sure to create backdrop first --- modules/buff.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/buff.lua b/modules/buff.lua index 39465a4c..276a71d0 100644 --- a/modules/buff.lua +++ b/modules/buff.lua @@ -17,6 +17,11 @@ pfUI:RegisterModule("buff", "vanilla:tbc", function () end buff.bid = GetPlayerBuff(PLAYER_BUFF_START_ID+buff.id, buff.btype) + if not buff.backdrop then + CreateBackdrop(buff) + CreateBackdropShadow(buff) + end + --detect weapon buffs if buff.btype == "HELPFUL" and ((C.buffs.separateweapons == "0" and buff.gid <= pfUI.buff.wepbuffs.count) or (pfUI.buff.wepbuffs.count > 0 and buff.weapon ~= nil)) then local mh, mhtime, mhcharge, oh, ohtime, ohcharge = GetWeaponEnchantInfo() @@ -52,11 +57,6 @@ 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