aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorRat <gmstreetrat@gmail.com>2014-12-04 19:23:35 +0100
committerRat <gmstreetrat@gmail.com>2014-12-04 19:23:35 +0100
commit08f486bfcf77d007aeb324b5c941433545234b0e (patch)
treed5f4ae067e15e8800c097d0da40f31339e147e8d /src/server/scripts/Commands
parentdf2514f0444a1b39f07ed63208f5db3ea4eb5c6d (diff)
Core/Spells: some updates to player spell and talent learning
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_learn.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Commands/cs_learn.cpp b/src/server/scripts/Commands/cs_learn.cpp
index 9d2d4426efe..e571f30b74e 100644
--- a/src/server/scripts/Commands/cs_learn.cpp
+++ b/src/server/scripts/Commands/cs_learn.cpp
@@ -204,7 +204,7 @@ public:
// learn highest rank of talent and learn all non-talent spell ranks (recursive by tree)
player->LearnSpellHighestRank(talentInfo->SpellID);
- player->AddTalent(talentInfo->SpellID, player->GetActiveTalentGroup());
+ player->AddTalent(talentInfo->SpellID, player->GetActiveTalentGroup(), true);
}
handler->SendSysMessage(LANG_COMMAND_LEARN_CLASS_TALENTS);
@@ -306,7 +306,7 @@ public:
if (!handler->extractPlayerTarget((char*)args, &target))
return false;
- target->LearnDefaultSpells();
+ target->LearnDefaultSkills();
target->LearnCustomSpells();
target->LearnQuestRewardedSpells();