From cd42cc972d2a2764da95ec772bcfe40f9d00a476 Mon Sep 17 00:00:00 2001 From: Netcho Date: Fri, 24 Aug 2012 15:02:31 +0300 Subject: [PATCH] Fix some forgotten stuff, thanks Zaka Signed-off-by: Netcho --- src/game/NPCHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp index 407a40afd..e96dd7e8c 100644 --- a/src/game/NPCHandler.cpp +++ b/src/game/NPCHandler.cpp @@ -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); } }