Quantcast

Expand the missing recipe item ID check to look for Instance, Raid, Mob Drop, and World Drop filters.

James D. Callahan III [03-13-11 - 05:07]
Expand the missing recipe item ID check to look for Instance, Raid, Mob Drop, and World Drop filters.
Filename
Scanner.lua
diff --git a/Scanner.lua b/Scanner.lua
index 084b6c9..364dd9e 100644
--- a/Scanner.lua
+++ b/Scanner.lua
@@ -1079,8 +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)
+				elseif recipe:HasFilter("common1", "VENDOR") or recipe:HasFilter("common1", "INSTANCE") or recipe:HasFilter("common1", "RAID") or recipe:HasFilter("common1", "MOB_DROP") or recipe:HasFilter("common1", "WORLD_DROP") then
+					self:Debug("Recipe %d (%s) is missing a recipe item ID.", spell_id, recipe.name)
 				end
 			end
 		end