From 812cbeba21e4d4368a8f696549453ed5d5cead2d Mon Sep 17 00:00:00 2001 From: Jim-Bim Date: Wed, 14 Jan 2009 21:45:49 +0000 Subject: [PATCH] AckisRecipeList: - added workaround for players with missing profession ability - removed all debug code related to this issue (see ticket 298) --- AckisRecipeList.lua | 28 ++++++---------------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index a1f3267..5f8fb6c 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -473,14 +473,12 @@ function addon:GetKnownProfessions(ProfTable) -- Nothing found break end - --@debug@ - self:Print("DEBUG: Player has the following profession: " .. spellName .. " (Index: ".. index .. ")") - --@end-debug@ - if (ProfTable[spellName] == false) then - --@debug@ - self:Print("DEBUG: Profession matched: " .. spellName .. " (Index: ".. index .. ")") - --@end-debug@ - ProfTable[spellName] = true + if (ProfTable[spellName] == false or spellName == GetSpellInfo(2656)) then + if spellName == GetSpellInfo(2656) then + ProfTable[GetSpellInfo(2575)] = true + else + ProfTable[spellName] = true + end end end @@ -500,15 +498,9 @@ function addon:GetTradeSpecialty(SpecialtyTable, playerData) -- Nothing found, return nothing if (not spellName) or (index == 25) then - --@debug@ - self:Print("DEBUG: No profession speciality found.") - --@end-debug@ return "" -- We have a match, return that spell name elseif (SpecialtyTable[playerData.playerProfession]) and (SpecialtyTable[playerData.playerProfession][spellName]) then - --@debug@ - self:Print("DEBUG: Profession speciality found: " .. spellName) - --@end-debug@ local ID = smatch(GetSpellLink(spellName), "^|c%x%x%x%x%x%x%x%x|Hspell:(%d+)") return ID end @@ -1314,14 +1306,6 @@ end local function InitializeRecipes(RecipeDB, playerProfession) - --@debug@ - if (playerProfession) then - addon:Print("DEBUG: Initializing with profession: " .. playerProfession) - else - addon:Print("DEBUG: Initializing without a profession.") - end - --@end-debug@ - -- Table of all possible professions with init functions local professiontable = { -- 1.7.9.5