mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Packet fixes, pet spells
This commit is contained in:
parent
e5a597ea9f
commit
b2d24ba0f7
18 changed files with 262 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue