Core/Player: initial work on implementing talents for Cataclysm

- use a new structure to hold talent group data which will eventually replace the old master branch implementation
- added support for unlocking dual talent specialization and switching specs
- added basic support for learning and resetting talents
This commit is contained in:
Ovahlord
2024-07-27 01:16:01 +02:00
parent acfba7fa14
commit 03b6898518
27 changed files with 561 additions and 588 deletions

View File

@@ -202,8 +202,8 @@ public:
if (!spellInfo || !SpellMgr::IsSpellValid(spellInfo, handler->GetSession()->GetPlayer(), false))
continue;
player->AddTalent(talentInfo, player->GetActiveTalentGroup(), true);
player->LearnSpell(talentInfo->SpellID, false);
//player->AddTalent(talentInfo, player->GetActiveTalentGroup(), true);
//player->LearnSpell(talentInfo->SpellID, false);
}
player->SendTalentsInfoData();

View File

@@ -237,7 +237,6 @@ public:
if (target)
{
target->ResetTalents(true);
target->ResetTalentSpecialization();
target->SendTalentsInfoData();
ChatHandler(target->GetSession()).SendSysMessage(LANG_RESET_TALENTS);
if (!handler->GetSession() || handler->GetSession()->GetPlayer() != target)