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); } }