mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Fix some forgotten stuff, thanks Zaka
Signed-off-by: Netcho <kkotlarski@abv.bg>
This commit is contained in:
parent
88056fee46
commit
cd42cc972d
1 changed files with 2 additions and 2 deletions
|
|
@ -291,7 +291,7 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recv_data)
|
|||
uint32 nSpellCost = uint32(floor(trainer_spell->spellCost * _player->GetReputationPriceDiscount(unit)));
|
||||
|
||||
// check money requirement
|
||||
if ((_player->GetMoney() < nSpellCost) && !trainState)
|
||||
if ((_player->GetMoney() < nSpellCost) && trainState > 1)
|
||||
trainState = 0;
|
||||
|
||||
if(trainState != 2)
|
||||
|
|
@ -323,7 +323,7 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recv_data)
|
|||
|
||||
sendData << ObjectGuid(guid);
|
||||
sendData << uint32(spellId); // should be same as in packet from client
|
||||
sendData << uint32(2);
|
||||
sendData << uint32(trainState);
|
||||
SendPacket(&sendData);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue