mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[8438] Correctly update achievement at bank bag slot buy instead next login.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
a1d29f50a0
commit
016dc29e5d
2 changed files with 3 additions and 2 deletions
|
|
@ -853,9 +853,10 @@ void WorldSession::HandleBuyBankSlotOpcode(WorldPacket& recvPacket)
|
||||||
if (_player->GetMoney() < price)
|
if (_player->GetMoney() < price)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT, slot);
|
|
||||||
_player->SetBankBagSlotCount(slot);
|
_player->SetBankBagSlotCount(slot);
|
||||||
_player->ModifyMoney(-int32(price));
|
_player->ModifyMoney(-int32(price));
|
||||||
|
|
||||||
|
_player->GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleAutoBankItemOpcode(WorldPacket& recvPacket)
|
void WorldSession::HandleAutoBankItemOpcode(WorldPacket& recvPacket)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8437"
|
#define REVISION_NR "8438"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue