X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/5d20ef029d0d455efa76ce2479b92d6196eab6ef..ef91c2584d4ee38c18d9da4ec909f237591e6482:/OmaTMW/TellMeWhen.lua?ds=sidebyside diff --git a/OmaTMW/TellMeWhen.lua b/OmaTMW/TellMeWhen.lua index b7ba1e8..cb35b0b 100644 --- a/OmaTMW/TellMeWhen.lua +++ b/OmaTMW/TellMeWhen.lua @@ -115,7 +115,7 @@ local function updateAuraFrame(frame) if UnitExists(unit) and (not frame.spec or frame.spec == currentSpec) then local name, icon, count, duration, expires; for _, aura in pairs(frame.auras) do - name, _, icon, count, _, duration, expires = UnitAura(unit, aura, nil, frame.auraFilter); + name, _, icon, count, _, duration, expires = UnitAura(unit, aura, nil, frame.auraFilter); if name then if count > 0 then frame.stack:SetText(count); @@ -247,7 +247,9 @@ Indicators:SetScript("OnEvent", function(self, event, arg1) currentSpec = GetSpecialization(); for _, frame in pairs(frames) do if frame.auras then updateAuraFrame(frame) end - if frame.totems then updateTotemFrame(frame) end + if frame.totems then + for _, slot in pairs(frame.totems) do updateTotemFrame(frame, slot) end + end end elseif event == "PLAYER_LOGIN" then initialize();