feat(Core/Player): Add 'OnPlayerCanLearnTalent' hook (#24826)

This commit is contained in:
EElenov
2026-03-17 21:30:57 +02:00
committed by GitHub
parent 6da5bf3a7a
commit 601a4231f6
4 changed files with 13 additions and 0 deletions
@@ -13958,6 +13958,9 @@ void Player::LearnTalent(uint32 talentId, uint32 talentRank, bool command /*= fa
if (!talentInfo)
return;
if (!sScriptMgr->OnPlayerCanLearnTalent(this, talentInfo, talentRank))
return;
TalentTabEntry const* talentTabInfo = sTalentTabStore.LookupEntry(talentInfo->TalentTab);
if (!talentTabInfo)
return;