aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorOvahlord <dreadkiller@gmx.de>2024-07-27 01:16:01 +0200
committerOvahlord <dreadkiller@gmx.de>2024-07-27 11:03:38 +0200
commit03b6898518e9321fdb1b805b7757bf4801fa8d08 (patch)
treeae2f2f5d32f4e2be01d6a7dfee1f344cdfeef83d /src/server/scripts
parentacfba7fa1497d583a3c814db6e0161fe72bdfec9 (diff)
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
Diffstat (limited to 'src/server/scripts')
-rw-r--r--src/server/scripts/Commands/cs_learn.cpp4
-rw-r--r--src/server/scripts/Commands/cs_reset.cpp1
2 files changed, 2 insertions, 3 deletions
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)