mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Fixed bug with professions in trainer list not being marked as known until trainer list re-opened.
This commit is contained in:
parent
112046718a
commit
b99f51a984
13 changed files with 108 additions and 91 deletions
|
|
@ -1118,7 +1118,7 @@ bool ChatHandler::HandleSetSkillCommand(const char* args)
|
|||
if( level <= 0 || level > max || max <= 0 )
|
||||
return false;
|
||||
|
||||
target->SetSkill(skill, level, max);
|
||||
target->SetSkill(skill, target->GetSkillStep(skill), level, max);
|
||||
PSendSysMessage(LANG_SET_SKILL, skill, sl->name[GetSessionDbcLocale()], tNameLink.c_str(), level, max);
|
||||
|
||||
return true;
|
||||
|
|
@ -1817,7 +1817,7 @@ bool ChatHandler::HandleLearnAllCommand(const char* /*args*/)
|
|||
continue;
|
||||
}
|
||||
|
||||
m_session->GetPlayer()->learnSpell(spell, 0, false);
|
||||
m_session->GetPlayer()->learnSpell(spell, false);
|
||||
}
|
||||
|
||||
SendSysMessage(LANG_COMMAND_LEARN_MANY_SPELLS);
|
||||
|
|
@ -1857,7 +1857,7 @@ bool ChatHandler::HandleLearnAllGMCommand(const char* /*args*/)
|
|||
continue;
|
||||
}
|
||||
|
||||
m_session->GetPlayer()->learnSpell(spell, 0, false);
|
||||
m_session->GetPlayer()->learnSpell(spell, false);
|
||||
}
|
||||
|
||||
SendSysMessage(LANG_LEARNING_GM_SKILLS);
|
||||
|
|
@ -1905,7 +1905,7 @@ bool ChatHandler::HandleLearnAllMySpellsCommand(const char* /*args*/)
|
|||
if(!SpellMgr::IsSpellValid(spellInfo,m_session->GetPlayer(),false))
|
||||
continue;
|
||||
|
||||
m_session->GetPlayer()->learnSpell(i, 0, false);
|
||||
m_session->GetPlayer()->learnSpell(i, false);
|
||||
}
|
||||
|
||||
SendSysMessage(LANG_COMMAND_LEARN_CLASS_SPELLS);
|
||||
|
|
@ -2037,7 +2037,7 @@ bool ChatHandler::HandleLearnAllLangCommand(const char* /*args*/)
|
|||
{
|
||||
// skipping UNIVERSAL language (0)
|
||||
for(int i = 1; i < LANGUAGES_COUNT; ++i)
|
||||
m_session->GetPlayer()->learnSpell(lang_description[i].spell_id, 0, false);
|
||||
m_session->GetPlayer()->learnSpell(lang_description[i].spell_id, false);
|
||||
|
||||
SendSysMessage(LANG_COMMAND_LEARN_ALL_LANG);
|
||||
return true;
|
||||
|
|
@ -2096,7 +2096,7 @@ bool ChatHandler::HandleLearnCommand(const char* args)
|
|||
if(allRanks)
|
||||
targetPlayer->learnSpellHighRank(spell);
|
||||
else
|
||||
targetPlayer->learnSpell(spell, 0, false);
|
||||
targetPlayer->learnSpell(spell, false);
|
||||
|
||||
uint32 first_spell = sSpellMgr.GetFirstSpellInChain(spell);
|
||||
if(GetTalentSpellCost(first_spell))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue