eqcompare: skip paperdoll owners in showalways mode

Comparing an equipped slot's tooltip against itself is pointless — every
delta is zero. Skip that case when `showalways=1`. Shift-hover still
forces the comparison unconditionally.
This commit is contained in:
Brues
2026-07-02 01:49:10 -05:00
parent 64c62a2a25
commit 0f97e8b0bd
+6 -1
View File
@@ -203,7 +203,12 @@ pfUI:RegisterModule("eqcompare", function ()
pfUI.eqcompare.tooltip = GameTooltip
local function AnnotateTooltip(tooltip)
if not IsShiftKeyDown() and C.tooltip.compare.showalways ~= "1" then return end
if not IsShiftKeyDown() then
if C.tooltip.compare.showalways ~= "1" then return end
local owner = tooltip:GetOwner()
local parent = owner and owner:GetParent()
if parent == PaperDollFrame then return end
end
local _, newLink, itemID = tooltip:GetItem()
if not itemID then return end