More debug code for rank1/rank2 issue. May have fixed root cause of bug.
John Pasula [01-25-11 - 18:54]
More debug code for rank1/rank2 issue. May have fixed root cause of bug.
diff --git a/core.lua b/core.lua
index 0403e3a..dd73df7 100644
--- a/core.lua
+++ b/core.lua
@@ -1699,11 +1699,12 @@ do
-- ability to learn the lower rank.
if overwritemap[SpellID] then
self:Print("Overwrite spell found." .. SpellID)
- local overwriterecipe = recipe_list[SpellID]
+ self:Print("Marking " .. overwritemap[SpellID])
+ local overwriterecipe = recipe_list[overwritemap[SpellID]]
if overwriterecipe then
togglerecipe(overwriterecipe, is_linked)
else
- self:Debug(tradeName .. " " .. SpellString .. L["MissingFromDB"])
+ self:Debug(tradeName .. " " .. overwritemap[SpellID] .. L["MissingFromDB"])
end
else
togglerecipe(recipe, is_linked)