From d08b7cdf28627b20d83e40a58bbceec0c3ff54cb Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 21 Mar 2010 23:02:16 -0400 Subject: [PATCH] In MainPanel.scroll_frame:Update() and MainPanel.scroll_frame:ExpandEntry(): Check the player's current profession (the one the list is opened with) rather than if the player knows the profession. This allows linked professions to work with Location/Acquisition sort. --- Frame.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Frame.lua b/Frame.lua index 9e01e7f..08b24cb 100644 --- a/Frame.lua +++ b/Frame.lua @@ -2225,7 +2225,7 @@ do for spell_id in pairs(private.acquire_list[acquire_type].recipes) do local recipe = private.recipe_list[spell_id] - if Player.professions[recipe.profession] and recipe.is_visible and recipe.is_relevant then + if recipe.profession == Player.current_prof and recipe.is_visible and recipe.is_relevant then count = count + 1 end end @@ -2260,7 +2260,7 @@ do for spell_id in pairs(private.location_list[loc_name].recipes) do local recipe = private.recipe_list[spell_id] - if Player.professions[recipe.profession] and recipe.is_visible and recipe.is_relevant then + if recipe.profession == Player.current_prof and recipe.is_visible and recipe.is_relevant then count = count + 1 end end @@ -2457,7 +2457,7 @@ do for spell_id in pairs(private.acquire_list[acquire_id].recipes) do local recipe_entry = private.recipe_list[spell_id] - if Player.professions[recipe_entry.profession] and recipe_entry.is_visible and recipe_entry.is_relevant then + if recipe_entry.profession == Player.current_prof and recipe_entry.is_visible and recipe_entry.is_relevant then local t = AcquireTable() t.text = FormatRecipeText(recipe_entry) @@ -2477,7 +2477,7 @@ do for spell_id in pairs(private.location_list[location_id].recipes) do local recipe_entry = private.recipe_list[spell_id] - if Player.professions[recipe_entry.profession] and recipe_entry.is_visible and recipe_entry.is_relevant then + if recipe_entry.profession == Player.current_prof and recipe_entry.is_visible and recipe_entry.is_relevant then local t = AcquireTable() t.text = FormatRecipeText(recipe_entry) -- 1.7.9.5