Skip to content

Commit

Permalink
Fixed pet talent show after loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jun 10, 2009
1 parent ad4887a commit 3104583
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/Pet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
((Player*)owner)->PetSpellInitialize();
if(((Player*)owner)->GetGroup())
((Player*)owner)->SetGroupUpdateFlag(GROUP_UPDATE_PET);

((Player*)owner)->SendTalentsInfoData(true);
}

if (owner->GetTypeId() == TYPEID_PLAYER && getPetType() == HUNTER_PET)
Expand Down Expand Up @@ -1646,7 +1648,8 @@ void Pet::InitTalentForLevel()
if (!owner || owner->GetTypeId() != TYPEID_PLAYER)
return;

((Player*)owner)->SendTalentsInfoData(true);
if(!m_loading)
((Player*)owner)->SendTalentsInfoData(true);
}

uint32 Pet::resetTalentsCost() const
Expand Down

0 comments on commit 3104583

Please sign in to comment.