-local function updateMonk(guid, _, _, weapon, wrist)
- local id = guidToId[guid];
- if id then
- local _, _, _, relic1, relic2, relic3 = strsplit(":", weapon);
- local cdfix = 0;
- if monkRelics[relic1] then cdfix = cdfix + monkRelics[relic1] end
- if monkRelics[relic2] then cdfix = cdfix + monkRelics[relic2] end
- if monkRelics[relic3] then cdfix = cdfix + monkRelics[relic3] end
- if cdfix ~= 0 then
- cdfixes[guid] = cdfix;
- else
- cdfixes[guid] = nil;
- end
-
- if wrist == 137096 then -- Petrichor Lagniappe
- monksWithLegendary[guid] = true;
- else
- monksWithLegendary[guid] = nil;
- end
- monks[guid] = true;
- updateUnitCD(guid);
- end
-end
-
--- a secondary tick for monks inventory check out of combat
-local function monkTick()
- if not InCombatLockdown() then
- for guid, _ in pairs(monks) do
- local id = guidToId[guid];
- if id then OmaInspect.Request(guid, id, updateMonk) end
- end
- end
- CTimerAfter(10, monkTick);
-end
-