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.
James D. Callahan III [03-25-10 - 09:11]
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.
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"