git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c2e174c
)
9d3198c - Fix castbar delays
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Sun, 6 May 2018 01:45:05 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Sun, 6 May 2018 01:45:05 +0000
OmaUF/CastBar.lua
patch
|
blob
|
history
diff --git
a/OmaUF/CastBar.lua
b/OmaUF/CastBar.lua
index
6170513
..
2d75e18
100644
(file)
--- a/
OmaUF/CastBar.lua
+++ b/
OmaUF/CastBar.lua
@@
-99,14
+99,13
@@
M.StartCast = startCast;
local function applyDelay(bar, unit, channeling)
local startTime, endTime;
if channeling then
local function applyDelay(bar, unit, channeling)
local startTime, endTime;
if channeling then
- _, _, _,
_,
startTime, endTime = UnitChannelInfo(unit);
+ _, _, _, startTime, endTime = UnitChannelInfo(unit);
else
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;
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;
end
M.ApplyDelay = applyDelay;