diff options
author | megamage <none@none> | 2009-07-07 06:59:03 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-07 06:59:03 +0800 |
commit | eec93e0852ddd6fa868dd20dd34dc1cd4fdc8cc3 (patch) | |
tree | 9957dbe33bc512387d469092531c853e1c5bbf06 /src/game/Level3.cpp | |
parent | 6b40a74b4ce66bd58878f0b108c3616fd9c28a68 (diff) |
[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
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r-- | src/game/Level3.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index ba956ac38f4..a099aa8f66c 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -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; } |