X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/cd9dfa52296863a89dd45f83a9230f5ddc9fdb9f..330739114047596de17fabf5182c25b065ebde39:/OmaRF/Events.lua diff --git a/OmaRF/Events.lua b/OmaRF/Events.lua index 94dd14f..d54a1df 100644 --- a/OmaRF/Events.lua +++ b/OmaRF/Events.lua @@ -98,7 +98,7 @@ local function updateHealth(frame, unit) frame.health:Show(); elseif current <= 0 or UnitIsDeadOrGhost(unit) then frame.health:Hide(); - updateText(frame, unit); -- update death + return updateText(frame, unit); -- update death else local w = current/max*width; frame.health:SetWidth(w); @@ -179,8 +179,8 @@ end M.UpdateHealAbsorb = updateHealAbsorb; local function updateAuras(frame, unit) - local alert = checkIndicators(frame, unit); - if alert then + updateAuras(frame, unit); -- this is throttled + if updateMajorAuras(frame, unit) then if frame.overlay.color ~= overlayColorAlert then frame.overlay:SetVertexColor(unpack(overlayColorAlert)); frame.overlay.color = overlayColorAlert; @@ -349,5 +349,5 @@ eventFuncs["PLAYER_ENTERING_WORLD"] = eventFuncs["UPDATE_ALL_BARS"]; eventFuncs["PLAYER_FOCUS_CHANGED"] = eventFuncs["UPDATE_ALL_BARS"]; function M.UnitEvent(self, event) - eventFuncs[event](self); + return eventFuncs[event](self); end