Mercurial > wow > reagentmaker
comparison ReagentMaker.lua @ 76:9d487333bf10
Block cross-tradeskill in external window
author | contrebasse |
---|---|
date | Sat, 14 May 2011 21:30:56 +0200 |
parents | e837f5681fbb |
children | cd36938d2a48 |
comparison
equal
deleted
inserted
replaced
75:3d344a2d8fdf | 76:9d487333bf10 |
---|---|
136 end | 136 end |
137 | 137 |
138 -- If we can make the item needed to make the reagent, open a window to make it | 138 -- If we can make the item needed to make the reagent, open a window to make it |
139 -- one step recursion, enables to mill to create an ink | 139 -- one step recursion, enables to mill to create an ink |
140 if (not A.data[reagentID][1].manyReagents) and A.data[A.data[reagentID][1][1]] then | 140 if (not A.data[reagentID][1].manyReagents) and A.data[A.data[reagentID][1][1]] then |
141 A.externalCraftWindow(A.data[reagentID][1][1],reagentID) | 141 if A.externalCraftWindow(A.data[reagentID][1][1],reagentID) ~= false then |
142 else | 142 return |
143 A.Error(A.L["You do not have enough reagents to craft [%s]"]:format(GetItemInfo(reagentID) or "item #"..reagentID)) | 143 end |
144 end | 144 end |
145 | |
146 A.Error(A.L["You do not have enough reagents to craft [%s]"]:format(GetItemInfo(reagentID) or "item #"..reagentID)) | |
145 return | 147 return |
146 else | 148 else |
147 A.externalCraftWindow(reagentID) | 149 A.externalCraftWindow(reagentID) |
148 end -- if | 150 end -- if |
149 --A.RestoreActiveFilters() | 151 --A.RestoreActiveFilters() |