X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/87a0cec84d40aeaad8a91dabd89a962c3c92d2dc..c809e5da99427a93b5ad5eb010a1cb1cba507ec2:/OmaCD/Inspect.lua diff --git a/OmaCD/Inspect.lua b/OmaCD/Inspect.lua index d1291da..3f223ad 100644 --- a/OmaCD/Inspect.lua +++ b/OmaCD/Inspect.lua @@ -119,17 +119,15 @@ local function inspectReady(guid) if not inspectui then ClearInspectPlayer() end else if CanInspect(id) then - if time - cached.time > 60 then -- refresh >1min - -- new inspect - cached.time = time; - if cached.needItems then - cached.weapon = GetInventoryItemLink(id, INVSLOT_MAINHAND); - cached.wrist = GetInventoryItemID(id, INVSLOT_WRIST); - end - cached.spec = GetInspectSpecialization(id); - local _, _, _, selected = GetTalentInfo(6, 2, 1, true, id); - cached.talent = selected; + -- new inspect + cached.time = time; + if cached.needItems then + cached.weapon = GetInventoryItemLink(id, INVSLOT_MAINHAND); + cached.wrist = GetInventoryItemID(id, INVSLOT_WRIST); end + cached.spec = GetInspectSpecialization(id); + local _, _, _, selected = GetTalentInfo(6, 2, 1, true, id); + cached.talent = selected; end if not inspectui then ClearInspectPlayer() end if (cached.needItems and cached.weapon) or