From e774c715729a1193152bd5ce1e0a3d672e8f8e25 Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 22 Oct 2008 05:55:35 +0000 Subject: [PATCH] Add stuff in comments on ticket, doesn't work but gives me a place to start tomorrow night or have someone else debug it for me --- AckisRecipeList.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 70859ef..2ec527a 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -1138,6 +1138,7 @@ function addon:UpdateFilters(RecipeDB, AllSpecialtiesTable, playerData) local playerSpecialty = playerData.playerSpecialty local playerFaction = playerData.playerFaction local playerClass = playerData.playerClass + local scanList = playerData.scannedSkills playerData.filteredRecipes = 0 @@ -1153,12 +1154,14 @@ function addon:UpdateFilters(RecipeDB, AllSpecialtiesTable, playerData) end - if (RecipeDB[RecipeID]["Profession"] ~= playerProfession) then + if (scanList[playerProfession]) and (RecipeDB[RecipeID]["Profession"] ~= playerProfession) then playerData.otherRecipes = playerData.otherRecipes + 1 end + scanList[playerProfession] = true + -- Set the display flag RecipeDB[RecipeID]["Display"] = displayflag @@ -1315,6 +1318,7 @@ do local _ _, playerData.playerClass = UnitClass("player") playerData.otherRecipes = 0 + playerData.scannedSkills = {} playerData["Reputation"] = {} self:GetFactionLevels(playerData["Reputation"]) -- 1.7.9.5