Mercurial > wow > reagentmaker
comparison SecureMenu.lua @ 103:c8d527a9fb3a v1.0beta11
Better manage combat and secure buttons
| author | contrebasse | 
|---|---|
| date | Sat, 21 May 2011 14:19:33 +0200 | 
| parents | e3147b41ea9d | 
| children | 618163a6d970 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 102:e74ed53097d7 | 103:c8d527a9fb3a | 
|---|---|
| 322 end | 322 end | 
| 323 | 323 | 
| 324 -- Fill the window and open it | 324 -- Fill the window and open it | 
| 325 function A.externalCraftWindow(itemID,superItemID) | 325 function A.externalCraftWindow(itemID,superItemID) | 
| 326 -- Do not open during combat | 326 -- Do not open during combat | 
| 327 if InCombatLockdown() then return end | 327 if InCombatLockdown() then | 
| 328 A.Error(SPELL_FAILED_AFFECTING_COMBAT) | |
| 329 return | |
| 330 end | |
| 328 | 331 | 
| 329 -- Save the tradeskill | 332 -- Save the tradeskill | 
| 330 A.currentTradeSkill = GetTradeSkillLine() | 333 A.currentTradeSkill = GetTradeSkillLine() | 
| 331 | 334 | 
| 332 -- Close the previous menu | 335 -- Close the previous menu | 
