From 03b6898518e9321fdb1b805b7757bf4801fa8d08 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sat, 27 Jul 2024 01:16:01 +0200 Subject: 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 --- src/server/scripts/Commands/cs_learn.cpp | 4 ++-- src/server/scripts/Commands/cs_reset.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_learn.cpp b/src/server/scripts/Commands/cs_learn.cpp index 2bbcf492c4a..b8b43344dff 100644 --- a/src/server/scripts/Commands/cs_learn.cpp +++ b/src/server/scripts/Commands/cs_learn.cpp @@ -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(); diff --git a/src/server/scripts/Commands/cs_reset.cpp b/src/server/scripts/Commands/cs_reset.cpp index 56c5f8b0ef8..6870f822ebd 100644 --- a/src/server/scripts/Commands/cs_reset.cpp +++ b/src/server/scripts/Commands/cs_reset.cpp @@ -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) -- cgit v1.2.3