Mercurial > wow > askmrrobot
comparison Gear.lua @ 71:6abc0858b45e v28
fixed minor bug with pulling bank items into your bags
| author | yellowfive |
|---|---|
| date | Sat, 18 Jul 2015 01:04:44 -0700 |
| parents | 69db1c3025ac |
| children | 304d7ebb8e30 |
comparison
equal
deleted
inserted
replaced
| 70:8af362b95d2f | 71:6abc0858b45e |
|---|---|
| 544 Amr:Print(L.GearEquipErrorNotFound) | 544 Amr:Print(L.GearEquipErrorNotFound) |
| 545 Amr:Print(L.GearEquipErrorNotFound2) | 545 Amr:Print(L.GearEquipErrorNotFound2) |
| 546 _pendingEquip = nil | 546 _pendingEquip = nil |
| 547 return | 547 return |
| 548 | 548 |
| 549 elseif bestItem and bestItem.bag and bestItem.bag >= NUM_BAG_SLOTS + 1 and bestItem.bag <= NUM_BAG_SLOTS + NUM_BANKBAGSLOTS then | 549 elseif bestItem and bestItem.bag and (bestItem.bag == BANK_CONTAINER or bestItem.bag >= NUM_BAG_SLOTS + 1 and bestItem.bag <= NUM_BAG_SLOTS + NUM_BANKBAGSLOTS) then |
| 550 -- find first empty bag slot | 550 -- find first empty bag slot |
| 551 local invBag, invSlot = findFirstEmptyBagSlot() | 551 local invBag, invSlot = findFirstEmptyBagSlot() |
| 552 if not invBag then | 552 if not invBag then |
| 553 -- stop if bags are too full | 553 -- stop if bags are too full |
| 554 Amr:Print(L.GearEquipErrorBagFull) | 554 Amr:Print(L.GearEquipErrorBagFull) |
