mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
Fixed pet talent show after loading.
This commit is contained in:
parent
411779ea87
commit
cb2df3028f
1 changed files with 4 additions and 1 deletions
|
|
@ -308,6 +308,8 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
|
||||||
((Player*)owner)->PetSpellInitialize();
|
((Player*)owner)->PetSpellInitialize();
|
||||||
if(((Player*)owner)->GetGroup())
|
if(((Player*)owner)->GetGroup())
|
||||||
((Player*)owner)->SetGroupUpdateFlag(GROUP_UPDATE_PET);
|
((Player*)owner)->SetGroupUpdateFlag(GROUP_UPDATE_PET);
|
||||||
|
|
||||||
|
((Player*)owner)->SendTalentsInfoData(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (owner->GetTypeId() == TYPEID_PLAYER && getPetType() == HUNTER_PET)
|
if (owner->GetTypeId() == TYPEID_PLAYER && getPetType() == HUNTER_PET)
|
||||||
|
|
@ -1646,7 +1648,8 @@ void Pet::InitTalentForLevel()
|
||||||
if (!owner || owner->GetTypeId() != TYPEID_PLAYER)
|
if (!owner || owner->GetTypeId() != TYPEID_PLAYER)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
((Player*)owner)->SendTalentsInfoData(true);
|
if(!m_loading)
|
||||||
|
((Player*)owner)->SendTalentsInfoData(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 Pet::resetTalentsCost() const
|
uint32 Pet::resetTalentsCost() const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue