mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Core/Items): properly show quest items count deposited/withdrew from bank (#8956)
- Closes #8699
This commit is contained in:
@@ -1258,9 +1258,10 @@ void WorldSession::HandleAutoStoreBankItemOpcode(WorldPacket& recvPacket)
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 count = pItem->GetCount();
|
||||
_player->RemoveItem(srcbag, srcslot, true);
|
||||
if (Item const* storedItem = _player->StoreItem(dest, pItem, true))
|
||||
_player->ItemAddedQuestCheck(storedItem->GetEntry(), storedItem->GetCount());
|
||||
_player->ItemAddedQuestCheck(storedItem->GetEntry(), count);
|
||||
}
|
||||
else // moving from inventory to bank
|
||||
{
|
||||
@@ -1273,6 +1274,7 @@ void WorldSession::HandleAutoStoreBankItemOpcode(WorldPacket& recvPacket)
|
||||
}
|
||||
|
||||
_player->RemoveItem(srcbag, srcslot, true);
|
||||
_player->ItemRemovedQuestCheck(pItem->GetEntry(), pItem->GetCount());
|
||||
_player->BankItem(dest, pItem, true);
|
||||
_player->UpdateTitansGrip();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user