From cd9bd49cee329abb1a728152dac94104a2b98761 Mon Sep 17 00:00:00 2001 From: ackis Date: Mon, 15 Jun 2009 16:52:39 +0000 Subject: [PATCH] Pass an is_vendor parameter so we can take advantage of that functionality. --- ARLDatamine.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index a7000f8..99ce69e 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1905,7 +1905,7 @@ function addon:ScanVendor() local spellid = reverse_lookup[recipename] -- Do the scan if we have the spell ID if (spellid) then - self:TooltipScanRecipe(spellid) + self:TooltipScanRecipe(spellid,true) else self:Print("Spell ID not found for: " .. name) end @@ -1966,7 +1966,7 @@ local RECIPE_NAMES = { -- @name AckisRecipeList:TooltipScanRecipe -- @param spellid The [[http://www.wowwiki.com/SpellLink Spell ID]] of the recipe being added to the database. -- @return Recipe has its tooltips scanned. -function addon:TooltipScanRecipe(spellid) +function addon:TooltipScanRecipe(spellid, is_vendor) local recipe_list = LoadRecipe() -- Get internal database if (not recipe_list) then @@ -1992,7 +1992,7 @@ function addon:TooltipScanRecipe(spellid) -- Check to see if we're dealing with a recipe if (RECIPE_NAMES[matchtext]) then - self:ScanToolTip(recipe_name, recipe_list, reverse_lookup, false, false) + self:ScanToolTip(recipe_name, recipe_list, reverse_lookup, is_vendor, false) -- We have a reverse look-up for the item which creates the spell (aka the recipe itself) local itemid = SPELL_ITEM[spellid] @@ -2000,7 +2000,7 @@ function addon:TooltipScanRecipe(spellid) local incache = GetItemInfo(itemid) if (incache) then ARLDatamineTT:SetHyperlink("item:" .. itemid .. ":0:0:0:0:0:0:0") - self:ScanToolTip(recipe_name, recipe_list, reverse_lookup, false, true) + self:ScanToolTip(recipe_name, recipe_list, reverse_lookup, is_vendor, true) else self:Print("Item ID: " .. itemid .. " not in cache. If you have Querier use /iq " .. itemid) end -- 1.7.9.5