diff utils.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 cf1da2654dc6
children 8dd86b6b76d8
line wrap: on
line diff
--- a/utils.lua	Sun May 15 12:12:18 2011 +0200
+++ b/utils.lua	Sun May 15 12:45:52 2011 +0200
@@ -251,18 +251,18 @@
 
 --[[
 function A.isTradeskillUnique(itemData)
-	local spellID = itemData[1].spellID
+	local spellName = itemData[1].spellName
 	
 	-- Check if the item is made by only one recipe. If not, return
 	if #itemData>1 then
 		for _,v in ipairs(itemData) do
-			if v.spellID ~= spellID then
-				spellID = nil
+			if v.spellName ~= spellName then
+				spellName = nil
 				break
 			end
 		end
 	end
 	
-	return spellID
+	return spellName
 end
 --]]
\ No newline at end of file