comparison ReagentMaker.lua @ 87:6a91e19275c8 v1.0beta5

Corrent error message
author contrebasse
date Sun, 15 May 2011 12:49:07 +0200
parents 996aaa818d04
children c369a2e16ab6
comparison
equal deleted inserted replaced
86:d571fa85e1b5 87:6a91e19275c8
127 if not reagentID or not A.data[reagentID] then return end 127 if not reagentID or not A.data[reagentID] then return end
128 128
129 -- If only one recipe is known for the reagent, use it 129 -- If only one recipe is known for the reagent, use it
130 if #(A.data[reagentID]) == 1 and not A.data[reagentID][1].macro then 130 if #(A.data[reagentID]) == 1 and not A.data[reagentID][1].macro then
131 if A.data[reagentID][1].spellName ~= GetTradeSkillLine() then 131 if A.data[reagentID][1].spellName ~= GetTradeSkillLine() then
132 A.Error(A.L["The recipe to make this reagent is in another tradeskill. Currently RagentMaker can not manage such a case, sorry."]) 132 A.Error(A.L["The recipe to make this reagent is in another tradeskill. Currently ReagentMaker can not manage such a case, sorry."])
133 return 133 return
134 end 134 end
135 135
136 local numMakable, reagentIndex = A.numMakable(reagentID) 136 local numMakable, reagentIndex = A.numMakable(reagentID)
137 137