diff options
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r-- | src/game/Level3.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index aa146210a77..0d56d12a816 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -2458,8 +2458,11 @@ bool ChatHandler::HandleLearnAllMyTalentsCommand(const char* /*args*/) // learn highest rank of talent and learn all non-talent spell ranks (recursive by tree) player->learnSpellHighRank(spellId); + player->AddTalent(spellId, player->GetActiveSpec(), true); } + player->SetFreeTalentPoints(0); + SendSysMessage(LANG_COMMAND_LEARN_CLASS_TALENTS); return true; } @@ -2536,6 +2539,8 @@ bool ChatHandler::HandleLearnAllMyPetTalentsCommand(const char* /*args*/) pet->learnSpellHighRank(spellid); } + pet->SetFreeTalentPoints(0); + SendSysMessage(LANG_COMMAND_LEARN_PET_TALENTS); return true; } |