Mercurial > wow > askmrrobot
diff Gear.lua @ 169:d90a740a1d0b v79
Bug fix, russian translation tweak.
author | yellowfive |
---|---|
date | Tue, 23 Jul 2019 14:48:31 -0700 |
parents | 3be9cc6f7d20 |
children | 5c586ff5fee5 |
line wrap: on
line diff
--- a/Gear.lua Wed Jul 10 12:53:50 2019 -0700 +++ b/Gear.lua Tue Jul 23 14:48:31 2019 -0700 @@ -1172,18 +1172,23 @@ table.insert(_pendingGearOps, { items = itemsToEquip.others, wait = true, label = "equip others" }) end - -- make the last operation wait no matter what, before this gets called again to check if everything succeeded - _pendingGearOps[#_pendingGearOps].wait = true + if #_pendingGearOps > 0 then + -- make the last operation wait no matter what, before this gets called again to check if everything succeeded + _pendingGearOps[#_pendingGearOps].wait = true - if not _gearOpWaiting then - _gearOpWaiting = { inventory = {} } + if not _gearOpWaiting then + _gearOpWaiting = { inventory = {} } + end + + _gearOpPasses = passes + _currentGearOp = _pendingGearOps[1] + initializeGearOp(_currentGearOp, setupId, 1) + + processCurrentGearOp() + else + -- TODO: print message that gear set couldn't be equipped end - - _gearOpPasses = passes - _currentGearOp = _pendingGearOps[1] - initializeGearOp(_currentGearOp, setupId, 1) - - processCurrentGearOp() + else -- TODO: print message that gear set couldn't be equipped end