Skip to content

Commit

Permalink
Don't read protected tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Nov 1, 2024
1 parent b08551b commit 72651c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function addon:MODIFIER_STATE_CHANGED()
end
elseif GameTooltip:IsShown() then
local owner = GameTooltip:GetOwner()
if owner and owner:IsMouseOver() then
if owner and not (GameTooltip:IsForbidden() or GameTooltip:IsProtected()) and owner:IsMouseOver() then
if owner.GetSlotAndBagID then
local slotIndex, bagID = owner:GetSlotAndBagID()
if slotIndex and bagID then
Expand Down

0 comments on commit 72651c2

Please sign in to comment.