Mercurial > wow > reagentmaker
comparison utils.lua @ 76:9d487333bf10
Block cross-tradeskill in external window
| author | contrebasse |
|---|---|
| date | Sat, 14 May 2011 21:30:56 +0200 |
| parents | a77fd9d06ba4 |
| children | cf1da2654dc6 |
comparison
equal
deleted
inserted
replaced
| 75:3d344a2d8fdf | 76:9d487333bf10 |
|---|---|
| 233 end | 233 end |
| 234 end | 234 end |
| 235 | 235 |
| 236 return unique | 236 return unique |
| 237 end | 237 end |
| 238 | |
| 239 --[[ | |
| 240 function A.isTradeskillUnique(itemData) | |
| 241 local spellID = itemData[1].spellID | |
| 242 | |
| 243 -- Check if the item is made by only one recipe. If not, return | |
| 244 if #itemData>1 then | |
| 245 for _,v in ipairs(itemData) do | |
| 246 if v.spellID ~= spellID then | |
| 247 spellID = nil | |
| 248 break | |
| 249 end | |
| 250 end | |
| 251 end | |
| 252 | |
| 253 return spellID | |
| 254 end | |
| 255 --]] |
