From 263e249957dcfc6358c369ffba143da211e37460 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 24 Mar 2010 23:12:36 -0400 Subject: [PATCH] In MainPanel.scroll_frame:Update(): Removed the profession check again - that wasn't the issue. --- Frame.lua | 46 ++++++++++++++++++++-------------------------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/Frame.lua b/Frame.lua index 9d20042..78fee51 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2654,22 +2654,19 @@ do -- Check to see if any recipes for this acquire type will be shown - otherwise, don't show the type in the list. for spell_id, faction in pairs(private.acquire_list[acquire_type].recipes) do local recipe = private.recipe_list[spell_id] + local has_faction = false - if recipe.profession == current_prof then - local has_faction = false - - 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 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.is_visible and recipe.is_relevant then - count = count + 1 + if has_faction and recipe.is_visible and recipe.is_relevant then + count = count + 1 - if not recipe_registry[recipe] then - recipe_registry[recipe] = true - recipe_count = recipe_count + 1 - end + if not recipe_registry[recipe] then + recipe_registry[recipe] = true + recipe_count = recipe_count + 1 end end end @@ -2697,22 +2694,19 @@ do -- Check to see if any recipes for this location will be shown - otherwise, don't show the location in the list. for spell_id, faction in pairs(private.location_list[loc_name].recipes) do local recipe = private.recipe_list[spell_id] + local has_faction = false - if recipe.profession == current_prof then - local has_faction = false - - 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 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.is_visible and recipe.is_relevant then - count = count + 1 + if has_faction and recipe.is_visible and recipe.is_relevant then + count = count + 1 - if not recipe_registry[recipe] then - recipe_registry[recipe] = true - recipe_count = recipe_count + 1 - end + if not recipe_registry[recipe] then + recipe_registry[recipe] = true + recipe_count = recipe_count + 1 end end end -- 1.7.9.5