mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Fixed bank bag slot amount achievement statistic. Cleanup related code.
This commit is contained in:
parent
d3d07c5657
commit
3d1b055e9e
4 changed files with 15 additions and 22 deletions
|
|
@ -842,7 +842,7 @@ void WorldSession::HandleBuyBankSlotOpcode(WorldPacket& recvPacket)
|
|||
return;
|
||||
}
|
||||
|
||||
uint32 slot = _player->GetByteValue(PLAYER_BYTES_2, 2);
|
||||
uint32 slot = _player->GetBankBagSlotCount();
|
||||
|
||||
// next slot
|
||||
++slot;
|
||||
|
|
@ -860,7 +860,7 @@ void WorldSession::HandleBuyBankSlotOpcode(WorldPacket& recvPacket)
|
|||
return;
|
||||
|
||||
_player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT, slot);
|
||||
_player->SetByteValue(PLAYER_BYTES_2, 2, slot);
|
||||
_player->SetBankBagSlotCount(slot);
|
||||
_player->ModifyMoney(-int32(price));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue