mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
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:
@@ -13584,6 +13584,7 @@ uint32 Player::CalculateTalentsPoints() const
|
||||
}
|
||||
|
||||
talentPointsForLevel += m_extraBonusTalentCount;
|
||||
sScriptMgr->OnCalculateTalentsPoints(this, talentPointsForLevel);
|
||||
return uint32(talentPointsForLevel * sWorld->getRate(RATE_TALENT));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user