Core/Spells: some updates to player spell and talent learning

This commit is contained in:
Rat
2014-12-04 19:23:35 +01:00
parent df2514f044
commit 08f486bfcf
20 changed files with 1030 additions and 1068 deletions

View File

@@ -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();