From 98c73da2a40a88ffc4e1c70bd1287757cf39fd2c Mon Sep 17 00:00:00 2001 From: Ketho Date: Thu, 26 Mar 2020 00:57:20 +0100 Subject: [PATCH] Update for 1.13.4 --- VendorPrice.lua | 4 ++-- VendorPrice.toc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VendorPrice.lua b/VendorPrice.lua index 7d105fa..2caaec1 100644 --- a/VendorPrice.lua +++ b/VendorPrice.lua @@ -22,7 +22,7 @@ local function IsMerchant(tt) end local function ShouldShowPrice(tt, source) - return not IsMerchant(tt) --and not VP:HasAuctionator(source) + return not IsMerchant(tt) and not VP:HasAuctionator(source) end -- OnTooltipSetItem fires twice for recipes @@ -157,7 +157,7 @@ end ItemRefTooltip:HookScript("OnTooltipSetItem", function(tt) local item = select(2, tt:GetItem()) - if item then --and not VP:HasAuctionator("OnTooltipSetItem") then + if ite and not VP:HasAuctionator("OnTooltipSetItem") then local sellPrice, classID = select(11, GetItemInfo(item)) if sellPrice and sellPrice > 0 and not CheckRecipe(tt, classID, true) then SetTooltipMoney(tt, sellPrice, nil, SELL_PRICE_TEXT) diff --git a/VendorPrice.toc b/VendorPrice.toc index ff1470e..ca0bc8f 100644 --- a/VendorPrice.toc +++ b/VendorPrice.toc @@ -1,4 +1,4 @@ -## Interface: 11303 +## Interface: 11304 ## Version: @project-version@ ## Title: Vendor Price ## Notes: Displays the price of an item when not at a vendor