git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
08783ec - Faster updates for bres tracker
[wowui.git]
/
OmaRF
/
Events.lua
diff --git
a/OmaRF/Events.lua
b/OmaRF/Events.lua
index
94dd14f
..
762cb99
100644
(file)
--- 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();
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);
else
local w = current/max*width;
frame.health:SetWidth(w);
@@
-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["PLAYER_FOCUS_CHANGED"] = eventFuncs["UPDATE_ALL_BARS"];
function M.UnitEvent(self, event)
- eventFuncs[event](self);
+
return
eventFuncs[event](self);
end
end