From af9a2c0d3428631f7937d7614c865bfbbe1bb250 Mon Sep 17 00:00:00 2001 From: Spit <19otari98@gmail.com> Date: Fri, 14 Aug 2026 13:54:02 +0300 Subject: [PATCH] use mods provided and extended functions for links if possible --- AtlasLoot.toc | 2 +- Core/Tooltip.lua | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/AtlasLoot.toc b/AtlasLoot.toc index f923a59..5671831 100644 --- a/AtlasLoot.toc +++ b/AtlasLoot.toc @@ -3,7 +3,7 @@ ## Notes: Shows possible loot from dungeon bosses and other sources. ## Author: Otari (overhaul/revamp, menu changes, bugfixes/updates), Lexie (Turtle WoW fixes/updates), Pepopo, MarcelineVQ (Kara40 loot), Shagu ## LegacyAuthor: Daviesh, Pompa (Turtle WoW World Bosses), Xerron (Turtle WoW World Bosses), Gurky (Turtle WoW 1.16/1.16.1 Dungeons) -## Version: 3.4.4 +## Version: 3.4.5 ## SavedVariablesPerCharacter: AtlasLootCharDB ## OptionalDeps: Alphamap, AtlasLoader, LootLink, ItemSync, HewdropLib, Ace2, EquipCompare, EQCompare diff --git a/Core/Tooltip.lua b/Core/Tooltip.lua index 91cd384..40b5d20 100644 --- a/Core/Tooltip.lua +++ b/Core/Tooltip.lua @@ -238,7 +238,11 @@ local function HookTooltip(tooltip) insideHook = true original_SetInboxItem(self, mailID, attachmentIndex) insideHook = false - self.itemID = GetItemIDByName(GetInboxItem(mailID)) + if GetInboxItemLink then + self.itemID = IDFromLink(GetInboxItemLink(mailID, attachmentIndex)) + else + self.itemID = GetItemIDByName(GetInboxItem(mailID, attachmentIndex)) + end ExtendTooltip(self) end @@ -291,7 +295,12 @@ local function HookTooltip(tooltip) insideHook = true original_SetAuctionSellItem(self) insideHook = false - self.itemID = tonumber(GetItemIDByName(GetAuctionSellItemInfo())) + local name, texture, count, quality, canUse, price, maxStack, itemLink = GetAuctionSellItemInfo() + if itemLink then + self.itemID = IDFromLink(itemLink) + else + self.itemID = tonumber(GetItemIDByName(name)) + end ExtendTooltip(self) end