Added missing talent points update at player/pet level change.

This commit is contained in:
tomrus88 2009-05-05 17:25:52 +04:00
parent 6b71704ac0
commit 395670f05a
2 changed files with 11 additions and 0 deletions

View file

@ -1637,6 +1637,12 @@ void Pet::InitTalentForLevel()
resetTalents(true);
}
SetFreeTalentPoints(talentPointsForLevel - m_usedTalentCount);
Unit *owner = GetOwner();
if (!owner || owner->GetTypeId() != TYPEID_PLAYER)
return;
((Player*)owner)->SendTalentsInfoData(true);
}
uint32 Pet::resetTalentsCost() const