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
local function updateUnitCD(guid)
local specid = guidToSpecid[guid];
- if specid then
+ if specid and trackedcds[specid] then
for spellid, _ in pairs(trackedcds[specid]) do
updateCD(guid, specid, spellid);
end
if not InCombatLockdown() then
for guid, _ in pairs(monks) do
local id = guidToId[guid];
- if id then OmaInspect.Request(guid, id, updateMonk) end
+ if id then OmaInspect.Request(guid, id, updateMonk, true) end
end
end
CTimerAfter(10, monkTick);
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