diff options
author | Machiavelli <none@none> | 2009-06-11 17:56:20 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-06-11 17:56:20 +0200 |
commit | 1c97b2bf796fb367b77e653556220e69cf7b5878 (patch) | |
tree | ffaa612c7502785edc750a664ebc2253c41e4f5c /src/game/PetHandler.cpp | |
parent | 6eaf6e962a31aa308406289d538aef30a56b95cb (diff) | |
parent | 6c069aa5b8405d51202781104daf5c6e8642b891 (diff) |
Merge
--HG--
branch : trunk
Diffstat (limited to 'src/game/PetHandler.cpp')
-rw-r--r-- | src/game/PetHandler.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp index 7547d125d9c..d03aa7af7c4 100644 --- a/src/game/PetHandler.cpp +++ b/src/game/PetHandler.cpp @@ -542,6 +542,7 @@ void WorldSession::HandlePetUnlearnOpcode(WorldPacket& recvPacket) return; } pet->resetTalents(); + _player->SendTalentsInfoData(true); } void WorldSession::HandlePetSpellAutocastOpcode( WorldPacket& recvPacket ) @@ -708,4 +709,31 @@ void WorldSession::HandlePetLearnTalent( WorldPacket & recv_data ) recv_data >> guid >> talent_id >> requested_rank; _player->LearnPetTalent(guid, talent_id, requested_rank); + _player->SendTalentsInfoData(true); +} + +void WorldSession::HandleLearnPreviewTalentsPet( WorldPacket & recv_data ) +{ + sLog.outDebug("CMSG_LEARN_PREVIEW_TALENTS_PET"); + + CHECK_PACKET_SIZE(recv_data, 8+4); + + uint64 guid; + recv_data >> guid; + + uint32 talentsCount; + recv_data >> talentsCount; + + uint32 talentId, talentRank; + + for(uint32 i = 0; i < talentsCount; ++i) + { + CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+4+4); + + recv_data >> talentId >> talentRank; + + _player->LearnPetTalent(guid, talentId, talentRank); + } + + _player->SendTalentsInfoData(true); } |