diff MillingData.lua @ 85:996aaa818d04 v1.0beta4

Clarify error message with cross-tradeskill, and clarify the use of GetTradeSkillLine() internally
author contrebasse
date Sun, 15 May 2011 12:45:52 +0200
parents 32ec6417874a
children e1484cc77f01
line wrap: on
line diff
--- a/MillingData.lua	Sun May 15 12:12:18 2011 +0200
+++ b/MillingData.lua	Sun May 15 12:45:52 2011 +0200
@@ -129,7 +129,8 @@
 
 -- "Tradeskill" data
 local MillID = 51005
-local macroMill = "/cast "..GetSpellInfo(MillID).."\n/use %s"
+local MillName = GetSpellInfo(MillID)
+local macroMill = "/cast "..MillName.."\n/use %s"
 local MillLink = GetSpellLink(MillID)
 
 -- Add "Tradeskill" data to each "recipe"
@@ -137,6 +138,7 @@
 	for i,v in ipairs(t) do
 		v.macro = macroMill
 		v.spellID = MillID
+		v.spellName = MillName
 		v.spellLink = MillLink
 	end
 end