X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/fb13e34ef34a0d06235ca2b6dd3de0f5dbbd7fd8..e2567ab9a89462e5f642e0f4b3091f5da768db2b:/kehys/updater.lua diff --git a/kehys/updater.lua b/kehys/updater.lua index 668f229..05696d3 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -127,7 +127,8 @@ function addon.FrameUpdate(frame) end -- aura stacks if next(frame.stacks) then - frame.stack:SetText(next(frame.stacks)); + local _, amount = next(frame.stacks); + frame.stack:SetText(amount); if not frame.stack:IsShown() then frame.stack:Show() end elseif frame.stack:IsShown() then frame.stack:Hide(); @@ -140,11 +141,11 @@ function addon.FrameUpdate(frame) frame.overlay.color = majorcolor; if not frame.overlay:IsShown() then frame.overlay:Show() end end - elseif next(frame.heal) then - -- major heals needed - if frame.overlay.color ~= healcolor then - frame.overlay:SetVertexColor(unpack(healcolor)); - frame.overlay.color = healcolor; + elseif UnitDebuff(unit, 1, "RAID") ~= nil then + -- dispellable + if frame.overlay.color ~= dispelcolor then + frame.overlay:SetVertexColor(unpack(dispelcolor)); + frame.overlay.color = dispelcolor; if not frame.overlay:IsShown() then frame.overlay:Show() end end elseif UnitIsCharmed(unit) and frame.unit == frame.displayed then @@ -154,11 +155,11 @@ function addon.FrameUpdate(frame) frame.overlay.color = charmcolor; if not frame.overlay:IsShown() then frame.overlay:Show() end end - elseif UnitDebuff(unit, 1, "RAID") ~= nil then - -- dispellable - if frame.overlay.color ~= dispelcolor then - frame.overlay:SetVertexColor(unpack(dispelcolor)); - frame.overlay.color = dispelcolor; + elseif next(frame.heal) then + -- major heals needed + if frame.overlay.color ~= healcolor then + frame.overlay:SetVertexColor(unpack(healcolor)); + frame.overlay.color = healcolor; if not frame.overlay:IsShown() then frame.overlay:Show() end end else