mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9653] Correctly update talent free points in diff cases.
Before at .unlearn or .learn all_mytalents commands free talent points not updated correctly. Same for .learn all_mypettalents.
This commit is contained in:
parent
d004549fd4
commit
daaeb0a998
8 changed files with 86 additions and 49 deletions
|
|
@ -1953,6 +1953,8 @@ bool ChatHandler::HandleLearnAllMyTalentsCommand(const char* /*args*/)
|
|||
player->learnSpellHighRank(spellid);
|
||||
}
|
||||
|
||||
player->SendTalentsInfoData(false);
|
||||
|
||||
SendSysMessage(LANG_COMMAND_LEARN_CLASS_TALENTS);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -2029,6 +2031,8 @@ bool ChatHandler::HandleLearnAllMyPetTalentsCommand(const char* /*args*/)
|
|||
pet->learnSpellHighRank(spellid);
|
||||
}
|
||||
|
||||
player->SendTalentsInfoData(true);
|
||||
|
||||
SendSysMessage(LANG_COMMAND_LEARN_PET_TALENTS);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue