From ae29cffda6054a08cf032f89c517d9f1f2700cb5 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Wed, 7 Apr 2010 14:18:29 -0400 Subject: [PATCH] Don't store the spell link on the recipe - request it from the client when it's required. --- ARL.lua | 1 - Frame.lua | 4 ++-- Scanner.lua | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) 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. -- 1.7.9.5