From 94dfb047f26092333519ac23db6275954e2694b0 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Thu, 25 Mar 2010 05:11:53 -0400 Subject: [PATCH] In MainPanel.scroll_frame:ExpandEntry(): For Acquisition entries, check the recipe's faction against filters so that opposing faction recipes don't show up if you tell them not to. --- Frame.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Frame.lua b/Frame.lua index 5fde3e0..e746e85 100644 --- a/Frame.lua +++ b/Frame.lua @@ -3206,10 +3206,16 @@ do local acquire_id = list_entry.acquire_id if list_entry.type == "header" then - for spell_id in pairs(private.acquire_list[acquire_id].recipes) do + for spell_id, faction in pairs(private.acquire_list[acquire_id].recipes) do local recipe_entry = private.recipe_list[spell_id] + local has_faction = false - if recipe_entry.is_visible and recipe_entry.is_relevant then + if type(faction) == "boolean" + or addon.db.profile.filters.general.faction or faction == BFAC[Player.faction] or faction == BFAC["Neutral"] then + has_faction = true + end + + if has_faction and recipe_entry.is_visible and recipe_entry.is_relevant then local t = AcquireTable() local expand = false local type = "subheader" -- 1.7.9.5