aboutsummaryrefslogtreecommitdiff
path: root/src/game/Pet.cpp
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-06-11 17:56:20 +0200
committerMachiavelli <none@none>2009-06-11 17:56:20 +0200
commit1c97b2bf796fb367b77e653556220e69cf7b5878 (patch)
treeffaa612c7502785edc750a664ebc2253c41e4f5c /src/game/Pet.cpp
parent6eaf6e962a31aa308406289d538aef30a56b95cb (diff)
parent6c069aa5b8405d51202781104daf5c6e8642b891 (diff)
Merge
--HG-- branch : trunk
Diffstat (limited to 'src/game/Pet.cpp')
-rw-r--r--src/game/Pet.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index 89979ef439a..e27981922b6 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -304,6 +304,8 @@ bool Pet::LoadPetFromDB( Player* owner, uint32 petentry, uint32 petnumber, bool
if(owner->GetGroup())
owner->SetGroupUpdateFlag(GROUP_UPDATE_PET);
+ owner->SendTalentsInfoData(true);
+
if(getPetType() == HUNTER_PET)
{
result = CharacterDatabase.PQuery("SELECT genitive, dative, accusative, instrumental, prepositional FROM character_pet_declinedname WHERE owner = '%u' AND id = '%u'", owner->GetGUIDLow(), GetCharmInfo()->GetPetNumber());
@@ -1570,6 +1572,13 @@ void Pet::InitTalentForLevel()
resetTalents(true);
}
SetFreeTalentPoints(talentPointsForLevel - m_usedTalentCount);
+
+ Unit *owner = GetOwner();
+ if (!owner || owner->GetTypeId() != TYPEID_PLAYER)
+ return;
+
+ if(!m_loading)
+ ((Player*)owner)->SendTalentsInfoData(true);
}
uint32 Pet::resetTalentsCost() const