diff options
| author | Ovahlord <dreadkiller@gmx.de> | 2023-11-15 22:41:58 +0100 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2023-11-15 22:42:08 +0100 |
| commit | 6cc08c7668f1312a66539ee01be22b2b317b5fd2 (patch) | |
| tree | fc9419eca7eeb345bddd6c6d40062d5742aae397 /src/server/game/Handlers/BankHandler.cpp | |
| parent | 015a50aacc217af7384d6229be0747200d5ca1ac (diff) | |
Core/Player: updated inventory slots
Diffstat (limited to 'src/server/game/Handlers/BankHandler.cpp')
| -rw-r--r-- | src/server/game/Handlers/BankHandler.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/server/game/Handlers/BankHandler.cpp b/src/server/game/Handlers/BankHandler.cpp index 5e515cf623a..b403c4bbfc1 100644 --- a/src/server/game/Handlers/BankHandler.cpp +++ b/src/server/game/Handlers/BankHandler.cpp @@ -194,7 +194,7 @@ void WorldSession::HandleReagentBankDepositOpcode(WorldPackets::Bank::ReagentBan for (Item* item : _player->GetCraftingReagentItemsToDeposit()) { ItemPosCountVec dest; - InventoryResult msg = _player->CanBankItem(NULL_BAG, NULL_SLOT, dest, item, false, true, true); + InventoryResult msg = _player->CanBankItem(NULL_BAG, NULL_SLOT, dest, item, false, true); if (msg != EQUIP_ERR_OK) { if (msg != EQUIP_ERR_REAGENT_BANK_FULL || !anyDeposited) @@ -234,7 +234,7 @@ void WorldSession::HandleAutoBankReagentOpcode(WorldPackets::Bank::AutoBankReage return; ItemPosCountVec dest; - InventoryResult msg = _player->CanBankItem(NULL_BAG, NULL_SLOT, dest, item, false, true, true); + InventoryResult msg = _player->CanBankItem(NULL_BAG, NULL_SLOT, dest, item, false, true); if (msg != EQUIP_ERR_OK) { _player->SendEquipError(msg, item, nullptr); @@ -269,23 +269,9 @@ void WorldSession::HandleAutoStoreBankReagentOpcode(WorldPackets::Bank::AutoStor if (!pItem) return; - if (_player->IsReagentBankPos(autoStoreBankReagent.Slot, autoStoreBankReagent.PackSlot)) { ItemPosCountVec dest; - InventoryResult msg = _player->CanStoreItem(NULL_BAG, NULL_SLOT, dest, pItem, false); - if (msg != EQUIP_ERR_OK) - { - _player->SendEquipError(msg, pItem, nullptr); - return; - } - - _player->RemoveItem(autoStoreBankReagent.Slot, autoStoreBankReagent.PackSlot, true); - _player->StoreItem(dest, pItem, true); - } - else - { - ItemPosCountVec dest; - InventoryResult msg = _player->CanBankItem(NULL_BAG, NULL_SLOT, dest, pItem, false, true, true); + InventoryResult msg = _player->CanBankItem(NULL_BAG, NULL_SLOT, dest, pItem, false, true); if (msg != EQUIP_ERR_OK) { _player->SendEquipError(msg, pItem, nullptr); |
