From 2c375a4d531ddc10d519bda5d3503c936a9cfefa Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Fri, 19 May 2023 20:53:05 -0500 Subject: [PATCH] Check for nil tooltip owner --- RatingBuster.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RatingBuster.lua b/RatingBuster.lua index 720616c..dfe477e 100644 --- a/RatingBuster.lua +++ b/RatingBuster.lua @@ -1718,14 +1718,14 @@ local ITEM_MIN_LEVEL_PATTERN = ITEM_MIN_LEVEL:gsub("%%d", "%%d+") local BIND_TRADE_PATTERN = BIND_TRADE_TIME_REMAINING:gsub("%%s", ".*") local BEGIN_ITEM_SPELL_TRIGGER_ONUSE = "^" .. ITEM_SPELL_TRIGGER_ONUSE -local scanningParents = { +local scanningTooltipOwners = { ["WorldFrame"] = true, ["UIParent"] = true, } function RatingBuster.ProcessTooltip(tooltip, name, link) -- Do nothing if the tooltip is being used as a hidden scanning tooltip - if tooltip:GetAnchorType() == "ANCHOR_NONE" and scanningParents[tooltip:GetOwner():GetName()] then + if tooltip:GetAnchorType() == "ANCHOR_NONE" and (not tooltip:GetOwner() or scanningTooltipOwners[tooltip:GetOwner():GetName()]) then return end