From 8f4787995544a42ce76664aaa81a3f007b06aca4 Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Tue, 18 Nov 2025 03:07:08 +0400 Subject: [PATCH] fix: game tooltip override fix --- Core/Tooltip.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Core/Tooltip.lua b/Core/Tooltip.lua index f81c73a..d5a1e36 100644 --- a/Core/Tooltip.lua +++ b/Core/Tooltip.lua @@ -136,30 +136,33 @@ function Tooltip:Initialize() -- Hook SetBagItem local oldSetBagItem = GameTooltip.SetBagItem function GameTooltip:SetBagItem(bag, slot) - oldSetBagItem(self, bag, slot) + local ret = oldSetBagItem(self, bag, slot) local link = GetContainerItemLink(bag, slot) if link then Tooltip:AddInventoryInfo(self, link) end + return ret end -- Hook SetHyperlink for chat links local oldSetHyperlink = GameTooltip.SetHyperlink function GameTooltip:SetHyperlink(link) - oldSetHyperlink(self, link) + local ret = oldSetHyperlink(self, link) if link and strfind(link, "item:") then Tooltip:AddInventoryInfo(self, link) end + return ret end -- Hook SetInventoryItem for character paperdoll local oldSetInventoryItem = GameTooltip.SetInventoryItem function GameTooltip:SetInventoryItem(unit, slot) - oldSetInventoryItem(self, unit, slot) + local ret = oldSetInventoryItem(self, unit, slot) local link = GetInventoryItemLink(unit, slot) if link then Tooltip:AddInventoryInfo(self, link) end + return ret end -- Also hook ItemRefTooltip for chat links