# HG changeset patch # User Vynn # Date 1481256284 18000 # Node ID 17897a788554755674caeff02dc85de6a10e3e39 # Parent 58d886030d654cba1b9a727a4def7f71cd30623d 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. diff -r 58d886030d65 -r 17897a788554 Modules/ProspectMe_Value.lua --- 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