Packet fixes, pet spells

This commit is contained in:
tomrus88 2008-11-04 04:35:28 +03:00
parent e5a597ea9f
commit b2d24ba0f7
18 changed files with 262 additions and 30 deletions

View file

@ -731,6 +731,9 @@ void WorldSession::HandlePetLearnTalent( WorldPacket & recv_data )
if(!pet_family)
return;
if(pet_family->petTalentType < 0) // not hunter pet
return;
// prevent learn talent for different family (cheating)
if(!((1 << pet_family->petTalentType) & talentTabInfo->petTalentMask))
return;