Mercurial > wow > reagentmaker
diff ReagentMaker.lua @ 73:a77fd9d06ba4
Use the new internal data format everywhere
author | contrebasse |
---|---|
date | Sat, 14 May 2011 20:55:49 +0200 |
parents | 9cf4ca2145a3 |
children | e837f5681fbb |
line wrap: on
line diff
--- a/ReagentMaker.lua Sat May 14 20:28:05 2011 +0200 +++ b/ReagentMaker.lua Sat May 14 20:55:49 2011 +0200 @@ -215,18 +215,7 @@ btn.textureHighlight:Show() -- Check if the item is made by only one recipe. If not, return - if #A.data[reagentID]>1 then - local spellLink - for _,v in ipairs(A.data[reagentID]) do - if not spellLink then - spellLink = v.spellLink - else - if v.spellLink ~= spellLink then - return - end - end - end - end + if not A.isRecipeUnique(A.data[reagentID]) then return end -- Tooltips local link = A.data[reagentID][1].spellLink