-local function updateMonk(guid)
- local id = guidToId[guid];
- if not id then return end -- called because another addon inspected
- local weapon = GetInventoryItemLink(id, INVSLOT_MAINHAND);
- if not weapon then
- -- try again directly
- if CanInspect(id) then
- print(guid, "send inspect");NotifyInspect(id);
- CTimerAfter(20, updateMonk);
- end
- return;
- end
- if inspectSent[guid] then inspectSent[guid] = nil end
- print("Got monk", guid);
- 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 end
-
- local wrist = GetInventoryItemID(guidToId[guid], INVSLOT_WRIST);
- if wrist == 137096 then -- Petrichor Lagniappe
- monksWithLegendary[guid] = true;
- else
- monksWithLegendary[guid] = nil;
- end
- updateUnitCD(guid);
-end
-
-local function updateDruid(guid, player)