diff options
| author | Machiavelli <none@none> | 2010-03-19 20:20:42 +0100 |
|---|---|---|
| committer | Machiavelli <none@none> | 2010-03-19 20:20:42 +0100 |
| commit | 0c6368bd39bb129648ef0c9c9ed902e2484a4d8b (patch) | |
| tree | 08b24c9efcc4ed2dfdd3e7c9e7b2ea273dcca1a8 /src/game/PetHandler.cpp | |
| parent | 2b55eb2efeb323ce61927da38106e3d2077e178a (diff) | |
Fix hunter pet talent reset feature.
Thanks to Xanadu and nalimleinad for aiding research.
--HG--
branch : trunk
Diffstat (limited to 'src/game/PetHandler.cpp')
| -rw-r--r-- | src/game/PetHandler.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/game/PetHandler.cpp b/src/game/PetHandler.cpp index 85f3f87fde4..be3aeab355e 100644 --- a/src/game/PetHandler.cpp +++ b/src/game/PetHandler.cpp @@ -601,33 +601,6 @@ void WorldSession::HandlePetAbandon( WorldPacket & recv_data ) } } -void WorldSession::HandlePetUnlearnOpcode(WorldPacket& recvPacket) -{ - sLog.outDetail("CMSG_PET_UNLEARN"); - uint64 guid; - recvPacket >> guid; // Pet guid - - Pet* pet = _player->GetPet(); - - if(!pet || pet->getPetType() != HUNTER_PET || pet->m_usedTalentCount == 0) - return; - - if(guid != pet->GetGUID()) - { - sLog.outError( "HandlePetUnlearnOpcode.Pet %u isn't pet of player %s .", uint32(GUID_LOPART(guid)),GetPlayer()->GetName() ); - return; - } - - CharmInfo *charmInfo = pet->GetCharmInfo(); - if(!charmInfo) - { - sLog.outError("WorldSession::HandlePetUnlearnOpcode: object (GUID: %u TypeId: %u) is considered pet-like but doesn't have a charminfo!", pet->GetGUIDLow(), pet->GetTypeId()); - return; - } - pet->resetTalents(); - _player->SendTalentsInfoData(true); -} - void WorldSession::HandlePetSpellAutocastOpcode( WorldPacket& recvPacket ) { sLog.outDetail("CMSG_PET_SPELL_AUTOCAST"); |
