mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 04:59:41 -04:00
[8116] Fixed low ranks relearn bug, correctly show tlanes at command spell learn. By VladimirMangos
* Bug showup as paladin talents reset. Thanks to ApoC for reseach problem.
* Now at .learn command use for learn some talent this talent must correctly show as learned in talent dialog.
--HG--
branch : trunk
This commit is contained in:
@@ -1640,6 +1640,9 @@ bool ChatHandler::HandleUnLearnCommand(const char* args)
|
||||
else
|
||||
SendSysMessage(LANG_FORGET_SPELL);
|
||||
|
||||
if(GetTalentSpellCost(spell_id))
|
||||
target->SendTalentsInfoData(false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2582,6 +2585,10 @@ bool ChatHandler::HandleLearnCommand(const char* args)
|
||||
else
|
||||
targetPlayer->learnSpell(spell,false);
|
||||
|
||||
uint32 first_spell = spellmgr.GetFirstSpellInChain(spell);
|
||||
if(GetTalentSpellCost(first_spell))
|
||||
targetPlayer->SendTalentsInfoData(false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user