Mercurial > wow > prospect-me
diff Modules/ProspectMe_Value.lua @ 63:17897a788554 v2.7.1.2
Updated Auction API support to explicitly (instead of implicitly via Auctioneer API) work with TSM
Fixed a bug that was left over from the transition to v2.
author | Vynn <mischivin@gmail.com> |
---|---|
date | Thu, 08 Dec 2016 23:04:44 -0500 |
parents | 155fa49865f2 |
children |
line wrap: on
line diff
--- a/Modules/ProspectMe_Value.lua Thu Dec 08 23:02:01 2016 -0500 +++ b/Modules/ProspectMe_Value.lua Thu Dec 08 23:04:44 2016 -0500 @@ -4,8 +4,10 @@ if GetAuctionBuyout then -- if an installed addon supports Tekkub's GetAuctionBuyout API: Auctionator, AuctionLite, etc... v = GetAuctionBuyout(itemID) + elseif TSMAPI then -- TSM's Support + v = TSMAPI:GetItemValue(itemID, "DBMinBuyout") elseif AucAdvanced then -- Auctioneer Support - v = AucAdvanced.API.GetMarketValue(PM_ItemTable[itemID].link) + v = AucAdvanced.API.GetMarketValue(select(2, GetItemInfo(itemID))) end if v == nil then -- provides a failsafe if Auctioneer, etc is set to Load on Demand