Quantcast

When building RECIPE_ITEM_TO_SPELL_MAP, issue a debug print for recipes which have the Vendor filter set but do not have a recipe item ID set.

James D. Callahan III [03-12-11 - 10:31]
When building RECIPE_ITEM_TO_SPELL_MAP, issue a debug print for recipes which have the Vendor filter set but do not have a recipe item ID set.
Filename
Scanner.lua
diff --git a/Scanner.lua b/Scanner.lua
index 0b74140..084b6c9 100644
--- a/Scanner.lua
+++ b/Scanner.lua
@@ -1079,6 +1079,8 @@ do

 				if recipe_item_id then
 					RECIPE_ITEM_TO_SPELL_MAP[recipe_item_id] = spell_id
+				elseif recipe:HasFilter("common1", "VENDOR") then
+					self:Debug("Recipe %d (%s) has Vendor filter flag without a recipe item ID.", spell_id, recipe.name)
 				end
 			end
 		end