Quantcast

Lets hide the no spell link output when we're dealing with runeforging.

ackis [06-05-09 - 16:24]
Lets hide the no spell link output when we're dealing with runeforging.
Filename
ARLDatamine.lua
AckisRecipeList.lua
diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index 59b0536..b6b6468 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -1958,10 +1958,12 @@ function addon:TooltipScanRecipe(spellid)
 	local name = recipelist[spellid]["Name"]
 	local link = recipelist[spellid]["RecipeLink"]

-		if link then
+		-- If a link exists, we'll scan it.
+		if (link) then
 			ARLDatamineTT:SetHyperlink(link)
 			self:ScanToolTip(name,recipelist,reverselookup,false)
-		else
+		-- Lets hide this output for runeforging.
+		elseif (recipelist[spellid]["Profession"] ~= GetSpellInfo(53428)) then
 			self:Print("Missing RecipeLink for ID " .. spellid .. " - " .. name .. " (If these are DK abilities, don't worry, that's normal.")
 		end
 	else
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index 3b531c7..eb84e35 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -597,16 +597,16 @@ function addon:addTradeSkill(RecipeDB, SpellID, SkillLevel, ItemID, Rarity, Prof
 		["Locations"] = nil,
 		["RecipeLink"] = spellLink,
 		["Name"] = GetSpellInfo(SpellID),
-		["Known"] = false,				-- Unknown until scan occurs
-		["Display"] = true,				-- Set to be displayed until the filtering occurs
-		["Search"] = true,				-- Set to be showing in the search results
-		["Flags"] = {},					-- Create the flag space in the RecipeDB
-		["Acquire"] = {},				-- Create the Acquire space in the RecipeDB
-		["Specialty"] = Specialty,			-- Assumption: there will only be 1 speciality for a trade skill
-		["Orange"] = Orange or SkillLevel,		-- If we don't have an orange value in the db, just assume the skill level
+		["Known"] = false,							-- Unknown until scan occurs
+		["Display"] = true,							-- Set to be displayed until the filtering occurs
+		["Search"] = true,							-- Set to be showing in the search results
+		["Flags"] = {},								-- Create the flag space in the RecipeDB
+		["Acquire"] = {},							-- Create the Acquire space in the RecipeDB
+		["Specialty"] = Specialty,					-- Assumption: there will only be 1 speciality for a trade skill
+		["Orange"] = Orange or SkillLevel,			-- If we don't have an orange value in the db, just assume the skill level
 		["Yellow"] = Yellow or SkillLevel + 10,		-- If we don't have a yellow value in the db, just assume the skill level
 		["Green"] = Green or SkillLevel + 15,		-- If we don't have a green value in the db, just assume the skill level
-		["Grey"] = Grey or SkillLevel + 20,		-- If we don't have a grey value in the db, just assume the skill level
+		["Grey"] = Grey or SkillLevel + 20,			-- If we don't have a grey value in the db, just assume the skill level
 	}
 	local recipeentry = RecipeDB[SpellID]