From f988dff29fa225f618a4cb1bf0affe8645fe5bce Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 28 May 2026 14:31:09 -0500 Subject: [PATCH] no need to show count for unique items --- modules/itemcount.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/itemcount.lua b/modules/itemcount.lua index c50efdf8..35534978 100644 --- a/modules/itemcount.lua +++ b/modules/itemcount.lua @@ -13,7 +13,7 @@ pfUI:RegisterModule("itemcount", function () end local function AddCounts(frame, id) - if not id then return end + if not id or id == HEARTHSTONE_ITEM_ID or C_Item.GetItemUniquenessByID(id) == 1 then return end local total = C_Item.GetItemCount(id, true) -- bags + bank + equipped if total < 1 then return end @@ -33,8 +33,6 @@ pfUI:RegisterModule("itemcount", function () frame:Show() end - -- GameTooltip: piggyback on its OnShow lifecycle. Each tooltip refresh - -- hides/shows the parent which propagates Show() to this child frame. pfUI.itemcount = CreateFrame("Frame", "pfItemCountTooltip", GameTooltip) pfUI.itemcount:SetScript("OnShow", function() if GameTooltip:HasItem() then @@ -43,7 +41,6 @@ pfUI:RegisterModule("itemcount", function () end end) - -- ItemRefTooltip: persistent tooltip from chat link clicks. hooksecurefunc("SetItemRef", function() if ItemRefTooltip:HasItem() then local _, _, id = ItemRefTooltip:GetItem()