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);
cached.cb = callback;
cached.needItems = needItems;
local elapsed = GetTime() - cached.time;
- if force or (not needItems and (not cached.talent or elapsed > 60)) or
- (needItems and (not cached.weapon or elapsed > 60)) then
+ if force or (not needItems and (cached.talent == nil or elapsed > 60)) or
+ (needItems and (cached.weapon == nil or elapsed > 60)) then
if not pending[guid] or inspecting ~= guid then -- don't send multiple inspects
inspect(id);
end