local function applyDelay(bar, unit, channeling)
local startTime, endTime;
if channeling then
- _, _, _, _, startTime, endTime = UnitChannelInfo(unit);
+ _, _, _, startTime, endTime = UnitChannelInfo(unit);
else
- _, _, _, _, startTime, endTime = UnitCastingInfo(unit);
+ _, _, _, startTime, endTime = UnitCastingInfo(unit);
end
if not startTime or not endTime then return hideBar(bar) end
bar.startTime = startTime / 1000;
bar.endTime = endTime / 1000;
- -- TODO show delay text
end
M.ApplyDelay = applyDelay;