mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user