From 46315cb0661ca0300775dde12200d0706d3e19e0 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Mon, 24 Aug 2026 09:25:23 +0200 Subject: [PATCH] Fix Vanilla 1.12 vendor tooltip money capture --- libs/libvendorcache.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/libvendorcache.lua b/libs/libvendorcache.lua index dae1978..338858d 100644 --- a/libs/libvendorcache.lua +++ b/libs/libvendorcache.lua @@ -121,7 +121,11 @@ API.PrepareVendorValues = function() if count < 1 then count = 1 end local tooltipName = tooltip and tooltip:GetName() - local moneyFrame = tooltipName and _G[tooltipName .. "MoneyFrame1"] + if not tooltipName then return end + + -- Vanilla 1.12 uses GameTooltipMoneyFrame (no numeric suffix). Later + -- FrameXML versions use MoneyFrame1, so keep both for compatibility. + local moneyFrame = _G[tooltipName .. "MoneyFrame"] or _G[tooltipName .. "MoneyFrame1"] local stackPrice = moneyFrame and moneyFrame:IsShown() and tonumber(moneyFrame.staticMoney) if not stackPrice or stackPrice <= 0 then return end