feat(Core/Player): add OnCalculateTalentsPoints hook (#19749)

* playerTalentsHook

* oeps :#

* :#

* does this work?

* make reference

---------

Co-authored-by: Amy Fang <amy@cavemail.ddns.net>
This commit is contained in:
ianmeesters
2024-08-30 14:06:07 +02:00
committed by GitHub
parent 6b7a61483b
commit a83cd03bfb
4 changed files with 11 additions and 0 deletions

View File

@@ -13584,6 +13584,7 @@ uint32 Player::CalculateTalentsPoints() const
}
talentPointsForLevel += m_extraBonusTalentCount;
sScriptMgr->OnCalculateTalentsPoints(this, talentPointsForLevel);
return uint32(talentPointsForLevel * sWorld->getRate(RATE_TALENT));
}