mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9731] Cleanup in skil steps code.
* Move step arg in SetSkill to end for make possible for it default value. * Merge GetSkillStep function to SetSkill, base at fact that old GetSkillStep code can be != 0 only for already known spell, so at update
This commit is contained in:
parent
c64a2e8c84
commit
c7095fb3ed
7 changed files with 25 additions and 38 deletions
|
|
@ -1118,7 +1118,7 @@ bool ChatHandler::HandleSetSkillCommand(const char* args)
|
|||
if( level <= 0 || level > max || max <= 0 )
|
||||
return false;
|
||||
|
||||
target->SetSkill(skill, target->GetSkillStep(skill), level, max);
|
||||
target->SetSkill(skill, level, max);
|
||||
PSendSysMessage(LANG_SET_SKILL, skill, sl->name[GetSessionDbcLocale()], tNameLink.c_str(), level, max);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue