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);
eventFuncs["PLAYER_FOCUS_CHANGED"] = eventFuncs["UPDATE_ALL_BARS"];
function M.UnitEvent(self, event)
- eventFuncs[event](self);
+ return eventFuncs[event](self);
end