Mercurial > wow > itemauditor
comparison Modules/QuickAuctions.lua @ 78:88a42e00b866 release 2010-08-01
Fixed a problem with how prices were being pulled from Auctioneer.
| author | Asa Ayers <Asa.Ayers@Gmail.com> |
|---|---|
| date | Sun, 01 Aug 2010 22:02:12 -0700 |
| parents | a8fc802b42ba |
| children | 8d5ad3b71f6f |
comparison
equal
deleted
inserted
replaced
| 77:a8fc802b42ba | 78:88a42e00b866 |
|---|---|
| 162 | 162 |
| 163 return totalCost + (ahPrice * total) | 163 return totalCost + (ahPrice * total) |
| 164 end | 164 end |
| 165 | 165 |
| 166 function ItemAuditor:GetAuctionPrice(itemLink) | 166 function ItemAuditor:GetAuctionPrice(itemLink) |
| 167 local link = select(2, GetItemInfo(itemLink)) | |
| 168 assert(link, 'Invalid item link: '..itemLink) | |
| 167 if GetAuctionBuyout ~= nil then | 169 if GetAuctionBuyout ~= nil then |
| 168 return GetAuctionBuyout(itemLink) | 170 return GetAuctionBuyout(link) |
| 169 elseif AucAdvanced and AucAdvanced.Version then | 171 elseif AucAdvanced and AucAdvanced.Version then |
| 170 local _, _, _, _, _, lowBuy= AucAdvanced.Modules.Util.SimpleAuction.Private.GetItems(itemLink) | 172 local _, _, _, _, _, lowBuy= AucAdvanced.Modules.Util.SimpleAuction.Private.GetItems(link) |
| 171 return lowBuy | 173 return lowBuy |
| 172 end | 174 end |
| 173 return nil | 175 return nil |
| 174 end | 176 end |
| 175 | 177 |
