From d3b1c37af6b53a0b79f45b410da957b8770ea1f7 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sun, 20 Mar 2016 02:13:34 +0100 Subject: [PATCH] small fix --- scan_util.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scan_util.lua b/scan_util.lua index 8337f15..85bdea5 100644 --- a/scan_util.lua +++ b/scan_util.lua @@ -252,7 +252,8 @@ m.filters = { amount = Aux.money.from_string(amount or '') or 0 if amount > 0 then return function(auction_record) - return Aux.disenchant.value(auction_record.item_id) and Aux.disenchant.value(auction_record.item_id) - auction_record.bid_price >= amount + local disenchant_value = Aux.disenchant.value(auction_record.slot, auction_record.quality, auction_record.level) + return disenchant_value and disenchant_value - auction_record.bid_price >= amount end else return false, {}, 'Erroneous Bid Disenchant Profit Modifier' @@ -266,7 +267,8 @@ m.filters = { amount = Aux.money.from_string(amount or '') or 0 if amount > 0 then return function(auction_record) - return Aux.disenchant.value(auction_record.item_id) and Aux.disenchant.value(auction_record.item_id) - auction_record.buyout_price >= amount + local disenchant_value = Aux.disenchant.value(auction_record.slot, auction_record.quality, auction_record.level) + return disenchant_value and disenchant_value - auction_record.buyout_price >= amount end else return false, {}, 'Erroneous Buyout Disenchant Profit Modifier'