mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
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:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user