Don't store the spell link on the recipe - request it from the client when it's required.
James D. Callahan III [04-07-10 - 18:18]
Don't store the spell link on the recipe - request it from the client when it's required.
diff --git a/ARL.lua b/ARL.lua
index 5773cf0..25e939a 100644
--- a/ARL.lua
+++ b/ARL.lua
@@ -911,7 +911,6 @@ do
["item_id"] = item_id,
["quality"] = quality,
["profession"] = GetSpellInfo(profession),
- ["spell_link"] = GetSpellLink(spell_id),
["name"] = GetSpellInfo(spell_id),
["flags"] = {},
["acquire_data"] = {},
diff --git a/Frame.lua b/Frame.lua
index b496285..4968a6e 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -752,7 +752,7 @@ do
end
local spell_tip_anchor = addon.db.profile.spelltooltiplocation
local acquire_tip_anchor = addon.db.profile.acquiretooltiplocation
- local spell_link = recipe.spell_link
+ local spell_link = GetSpellLink(recipe.spell_id)
local MainPanel = addon.Frame
if acquire_tip_anchor == _G.OFF then
@@ -2691,7 +2691,7 @@ do
addon:Print(L["NoItemLink"])
end
elseif _G.IsControlKeyDown() then
- _G.ChatFrameEditBox:Insert(private.recipe_list[clicked_line.recipe_id].spell_link)
+ _G.ChatFrameEditBox:Insert(GetSpellLink(private.recipe_list[clicked_line.recipe_id].spell_id))
elseif _G.IsAltKeyDown() then
local exclusion_list = addon.db.profile.exclusionlist
local recipe_id = clicked_line.recipe_id
diff --git a/Scanner.lua b/Scanner.lua
index 7f37f61..5e0cb99 100644
--- a/Scanner.lua
+++ b/Scanner.lua
@@ -1862,7 +1862,7 @@ do
tinsert(output, "Skill Level Error: " .. tostring(spell_id) .. " " .. recipe_name)
end
end
- local recipe_link = recipe.spell_link
+ local recipe_link = GetSpellLink(recipe.spell_id)
if not recipe_link then
if recipe.profession ~= GetSpellInfo(53428) then -- Lets hide this output for runeforging.