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

@ -2327,6 +2327,8 @@ void Player::InitTalentForLevel()
else
SetFreeTalentPoints(talentPointsForLevel-m_usedTalentCount);
}
SendTalentsInfoData(false); // update at client
}
void Player::InitStatsForLevel(bool reapplyMods)
@ -19920,6 +19922,9 @@ void Player::BuildPetTalentsInfoData(WorldPacket *data)
void Player::SendTalentsInfoData(bool pet)
{
if(GetSession()->PlayerLoading())
return;
WorldPacket data(SMSG_TALENTS_INFO, 50);
data << uint8(pet ? 1 : 0);
if(pet)