From b421e4fd0a98cff617c1abd23ddc59ebb1202b2f Mon Sep 17 00:00:00 2001 From: torhal Date: Fri, 10 Jul 2009 09:08:18 +0000 Subject: [PATCH] In addon:ScanVendor(): Only show missing spell IDs if debugging. --- ARLDatamine.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index af91538..b0c2c11 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -978,13 +978,13 @@ function addon:ScanVendor() -- Get the name local name,_,_,_,numAvailable = GetMerchantItemInfo(i) if (name) then - added = true -- Get rid of the first part of the item local recipename = gsub(name,"%a+\: ","") -- Find out what spell ID we're using local spellid = reverse_lookup[recipename] -- Do the scan if we have the spell ID if (spellid) then + added = true tinsert(t,addon:TooltipScanRecipe(spellid,false,true)) -- Ok now we know it's a vendor,lets check the database to see if the vendor is listed as an acquire method. local acquire = recipe_list[spellid]["Acquire"] @@ -1001,7 +1001,10 @@ function addon:ScanVendor() tinsert(t,"Vendor ID missing from " .. spellid) end else + --@debug@ + added = true tinsert(t,"Spell ID not found for: " .. name) + --@end-debug@ end end end -- 1.7.9.5