From f4c4f33fd9414d391cf6a4529483f6090eb68e46 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Sep 2020 13:03:36 +0200 Subject: [PATCH] unitframes: run buff updates during boot --- api/unitframes.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index bda1257c..f4c65b1d 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -28,6 +28,7 @@ local glow2 = { local function BuffOnUpdate() local timeleft = GetPlayerBuffTimeLeft(GetPlayerBuff(PLAYER_BUFF_START_ID+this.id,"HELPFUL")) CooldownFrame_SetTimer(this.cd, GetTime(), timeleft, 1) + if not pfUI.bootup then this:SetScript("OnUpdate", nil) end end local function TargetBuffOnUpdate() @@ -667,6 +668,7 @@ function pfUI.uf:UpdateConfig() if f:GetName() == "pfPlayer" then f.buffs[i]:SetScript("OnShow", BuffOnUpdate) + f.buffs[i]:SetScript("OnUpdate", BuffOnUpdate) elseif f:GetName() == "pfTarget" and pfUI.expansion == "tbc" then f.buffs[i]:SetScript("OnUpdate", TargetBuffOnUpdate) end