Trainer scan: Don't allow a match by name if the recipe has a crafted item ID - this means either the crafted ID is wrong or, in the case of two versions of Glyph of Death Coil, the trainer really doesn't teach it.
James D. Callahan III [03-13-11 - 10:25]
Trainer scan: Don't allow a match by name if the recipe has a crafted item ID - this means either the crafted ID is wrong or, in the case of two versions of Glyph of Death Coil, the trainer really doesn't teach it.
diff --git a/Scanner.lua b/Scanner.lua
index 71a4ea7..a5852ff 100644
--- a/Scanner.lua
+++ b/Scanner.lua
@@ -728,7 +728,7 @@ do
end
end
local matching_item = scanned_items[recipe:CraftedItemID()]
- local matching_recipe = scanned_recipes[recipe.name]
+ local matching_recipe = scanned_recipes[recipe.name] and not recipe:CraftedItemID()
if matching_item or matching_recipe then
current_profession = recipe.profession