mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Added missing talent points update at player/pet level change.
This commit is contained in:
parent
6b71704ac0
commit
395670f05a
2 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue