# HG changeset patch # User James D. Callahan III # Date 1341362681 18000 # Node ID 11fcae12db206623b658e0f55e3d3e2714ba500c # Parent b58277aa11da3a87c9fa33be6c55d2b7f29ee4a2 Made the filters actually apply so ALL items are scanned. diff -r b58277aa11da -r 11fcae12db20 Main.lua --- a/Main.lua Tue Jul 03 15:22:51 2012 -0500 +++ b/Main.lua Tue Jul 03 19:44:41 2012 -0500 @@ -890,13 +890,15 @@ if unit_type ~= private.UNIT_TYPES.NPC or not unit_idnum then return end - local num_items = _G.GetMerchantNumItems() local current_filters = _G.GetMerchantFilter() local _, merchant_standing = UnitFactionStanding("target") local merchant = NPCEntry(unit_idnum) merchant.sells = merchant.sells or {} - _G.MerchantFrame_SetFilter(nil, _G.LE_LOOT_FILTER_ALL) + _G.SetMerchantFilter(_G.LE_LOOT_FILTER_ALL) + _G.MerchantFrame_Update() + + local num_items = _G.GetMerchantNumItems() for item_index = 1, num_items do local _, _, copper_price, stack_size, num_available, _, extended_cost = _G.GetMerchantItemInfo(item_index) @@ -963,7 +965,8 @@ if _G.CanMerchantRepair() then merchant.can_repair = true end - _G.MerchantFrame_SetFilter(nil, current_filters) + _G.SetMerchantFilter(current_filters) + _G.MerchantFrame_Update() end end -- do-block