diff --git a/MyAddon.lua b/MyAddon.lua index 80f6654..22ac618 100755 --- a/MyAddon.lua +++ b/MyAddon.lua @@ -66,7 +66,7 @@ function events:INSPECT_READY(guid) unit = GetUnitFromGuid(guid) - if unit then + if unit and CanInspect(unit) then local itemLevel = C_PaperDollInfo.GetInspectItemLevel(unit) InspectFontStrings["itemLevel"]:SetText(itemLevel) end