diff --git a/core/gears.lua b/core/gears.lua index f37d6dcb..e77a3c51 100644 --- a/core/gears.lua +++ b/core/gears.lua @@ -1899,7 +1899,7 @@ function ilvl_core:CalcItemLevel (unitid, guid, shout) unitid = unitid [1] end - if (unitid and CanInspect(unitid) and UnitPlayerControlled(unitid) and CheckInteractDistance(unitid, CONST_INSPECT_ACHIEVEMENT_DISTANCE)) then + if (unitid and UnitPlayerControlled(unitid) and CheckInteractDistance(unitid, CONST_INSPECT_ACHIEVEMENT_DISTANCE) and CanInspect(unitid)) then --16 = all itens including main and off hand local item_amount = 16 @@ -3149,4 +3149,4 @@ function CopyText(text) Details.CopyTextField.textField:SetText(text) Details.CopyTextField.textField:HighlightText() end) -end \ No newline at end of file +end