mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 12:22:39 +01:00
Core/Spells: some updates to player spell and talent learning
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user