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