Quantcast

Update to TSM4 API for auction house prices

WildCard_25 [03-24-19 - 04:10]
Update to TSM4 API for auction house prices
Filename
MissionCache.lua
diff --git a/MissionCache.lua b/MissionCache.lua
index bb5c2e6..f28116b 100644
--- a/MissionCache.lua
+++ b/MissionCache.lua
@@ -66,9 +66,9 @@ function module:OnInitialized()
 		addon.AuctionPrices=true
 		appraisers.ATR=Atr_GetAuctionBuyout
 	end
-	if _G.TSMAPI then
+	if _G.TSMAPI_FOUR then
 		addon.AuctionPrices=true
-		appraisers.TSM=function(itemlink) return TSMAPI:GetItemValue(itemlink,"DBMarket") end
+		appraisers.TSM=function(itemlink) return TSMAPI_FOUR.CustomPrice.GetItemPrice(itemlink,"DBMarket") end
 	end
 	if _G.TUJMarketInfo then
 		addon.AuctionPrices=true