From 4b034effe8e0d4b31e34b9be51d3c64e98ac12e9 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 21 Feb 2021 14:31:21 -0500 Subject: [PATCH] Make sure we can inspect the init --- MyAddon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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