Skip to content

Commit

Permalink
Update for 1.13.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketho committed Mar 25, 2020
1 parent 563dbe8 commit 98c73da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions VendorPrice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion VendorPrice.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 98c73da

Please sign in to comment.