comparison ReagentMaker.lua @ 31:22fa64c9b2de

Store spellLink instead of spellID
author contrebasse
date Thu, 28 Apr 2011 21:43:06 +0200
parents fd76c8951b7d
children 218e1dd1b821
comparison
equal deleted inserted replaced
30:fd76c8951b7d 31:22fa64c9b2de
204 204
205 -- Tooltips 205 -- Tooltips
206 local link 206 local link
207 if A.data[reagentID].spellLink then 207 if A.data[reagentID].spellLink then
208 link = A.data[reagentID].spellLink 208 link = A.data[reagentID].spellLink
209 elseif A.data[reagentID].spellID then
210 link = GetSpellLink(A.data[reagentID].spellID)
211 else 209 else
212 A.DEBUG("Recipe link not found for "..reagentID) 210 A.DEBUG("Recipe link not found for "..reagentID)
213 return 211 return
214 --[[
215 local reagentIndex = A.findSkillIndex(reagentID)
216 if reagentIndex then
217 link = GetTradeSkillRecipeLink(A.findSkillIndex(reagentID))
218 end
219 --]]
220 end 212 end
221 213
222 if link then 214 if link then
223 A.tooltipRecipe:SetOwner(btn) 215 A.tooltipRecipe:SetOwner(btn)
224 A.tooltipRecipe:SetHyperlink(link) 216 A.tooltipRecipe:SetHyperlink(link)