mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 08:17:56 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32 count = pItem->GetCount();
|
||||||
_player->RemoveItem(srcbag, srcslot, true);
|
_player->RemoveItem(srcbag, srcslot, true);
|
||||||
if (Item const* storedItem = _player->StoreItem(dest, pItem, 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
|
else // moving from inventory to bank
|
||||||
{
|
{
|
||||||
@@ -1273,6 +1274,7 @@ void WorldSession::HandleAutoStoreBankItemOpcode(WorldPacket& recvPacket)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_player->RemoveItem(srcbag, srcslot, true);
|
_player->RemoveItem(srcbag, srcslot, true);
|
||||||
|
_player->ItemRemovedQuestCheck(pItem->GetEntry(), pItem->GetCount());
|
||||||
_player->BankItem(dest, pItem, true);
|
_player->BankItem(dest, pItem, true);
|
||||||
_player->UpdateTitansGrip();
|
_player->UpdateTitansGrip();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user