From df564bd3b4e40e03c7dd88beaba27c75abd6d625 Mon Sep 17 00:00:00 2001 From: John Pasula Date: Tue, 25 Jan 2011 12:07:30 -0700 Subject: [PATCH] When we know the higher rank of spell, we need to set both it and the lower rank to known but only increment the counter by 1. --- core.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core.lua b/core.lua index dd73df7..abec712 100644 --- a/core.lua +++ b/core.lua @@ -1697,6 +1697,8 @@ do -- Mark the first rank of the spell as known if we know rank 2 for certain recipes. -- This is only done for recipes which when you learn the higher rank, you lose the -- ability to learn the lower rank. + + -- If we have it in the mapping, set the lower rank spell to known if overwritemap[SpellID] then self:Print("Overwrite spell found." .. SpellID) self:Print("Marking " .. overwritemap[SpellID]) @@ -1706,10 +1708,10 @@ do else self:Debug(tradeName .. " " .. overwritemap[SpellID] .. L["MissingFromDB"]) end - else - togglerecipe(recipe, is_linked) - recipes_found = recipes_found + 1 end + -- Toggle spell to known + togglerecipe(recipe, is_linked) + recipes_found = recipes_found + 1 else self:Debug(tradeName .. " " .. SpellString .. L["MissingFromDB"]) end -- 1.7.9.5