From 7422e9e73c2f7b6be12c902d507e45456fa83c2c Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Mon, 2 Mar 2020 23:58:23 +0200 Subject: [PATCH] Update frames every second anyway even without aura log events --- kehys/updater.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/kehys/updater.lua b/kehys/updater.lua index e8d889c..bb8fba1 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -21,6 +21,7 @@ local ignoredAuras = { [315176] = true, -- Grasping Tendrils }; +local rounds = 0; function addon.FrameUpdate(frame) assert(type(frame) == "table", "FrameUpdate received invalid frame parameter!"); @@ -123,6 +124,16 @@ function addon.FrameUpdate(frame) elseif frame.healpred:IsShown() then frame.healpred:Hide(); end + rounds = rounds + 1; + if (rounds > 8) then + frame.tankcd = {}; + frame.alert = {}; + frame.stacks = {}; + frame.heal = {}; + frame.buff1 = {}; + addon.SetAuras(frame.unit, frame.guid); + rounds = 0; + end -- tank CD marker if next(frame.tankcd) then if not frame.defensive:IsShown() then frame.defensive:Show() end -- 2.39.5