git
/
wowui.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3d660c5
)
c03452c - Fix couple lua errors
author
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 22 Mar 2018 22:50:27 +0000
committer
Aleksi Blinnikka <aleksi.blinnikka@gmail.com>
Thu, 22 Mar 2018 22:50:27 +0000
OmaCD/Cooldowns.lua
patch
|
blob
|
history
diff --git
a/OmaCD/Cooldowns.lua
b/OmaCD/Cooldowns.lua
index
9c7add4
..
c5241f1
100644
(file)
--- a/
OmaCD/Cooldowns.lua
+++ b/
OmaCD/Cooldowns.lua
@@
-169,6
+169,7
@@
local function getFrame()
return frame;
end
local function updateCD(guid, specid, spellid)
return frame;
end
local function updateCD(guid, specid, spellid)
+ if not guidToId[guid] then return end
-- update cd value
local cd = trackedcds[specid][spellid];
if cdfixes[guid] then cd = cd + cdfixes[guid] end
-- update cd value
local cd = trackedcds[specid][spellid];
if cdfixes[guid] then cd = cd + cdfixes[guid] end
@@
-253,7
+254,7
@@
end
local function updatePriest(guid, specid)
local id = guidToId[guid];
if id then
local function updatePriest(guid, specid)
local id = guidToId[guid];
if id then
- if guidToSpecid[guid] ~= specid then
+ if guidToSpecid[guid] ~= specid
and frames[guid]
then
for _, frame in pairs(frames[guid]) do
removeFrame(frame);
end
for _, frame in pairs(frames[guid]) do
removeFrame(frame);
end