fix compatibility with vendor prices

This commit is contained in:
Spit
2025-05-14 14:45:40 +03:00
parent 450ac28070
commit 529bcf15d5
+14 -15
View File
@@ -97,22 +97,21 @@ end
local lastItemID, lastSourceStr local lastItemID, lastSourceStr
local function ExtendTooltip(tooltip) local function ExtendTooltip(tooltip)
if not AtlasLootCharDB.ShowSource then if AtlasLootCharDB.ShowSource then
return local itemID = tonumber(tooltip.itemID)
end if itemID and itemID ~= 51217 then -- 51217 Fashion Coin
local itemID = tonumber(tooltip.itemID) if itemID ~= lastItemID then
if itemID and itemID ~= 51217 then -- 51217 Fashion Coin lastItemID = itemID
if itemID ~= lastItemID then lastSourceStr = nil
lastItemID = itemID local source = AtlasLoot_Data["AtlasLootSources"][itemID]
lastSourceStr = nil if source then
local source = AtlasLoot_Data["AtlasLootSources"][itemID] local str = GREY .. source .. "|r"
if source then lastSourceStr = str
local str = GREY .. source .. "|r" end
lastSourceStr = str end
if lastSourceStr then
AddSourceLine(tooltip, lastSourceStr)
end end
end
if lastSourceStr then
AddSourceLine(tooltip, lastSourceStr)
end end
end end
if tooltipMoney > 0 then if tooltipMoney > 0 then