Skip to content

Commit

Permalink
Add new Player hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Oct 15, 2023
1 parent d06fed8 commit 9adbcf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5909,6 +5909,10 @@ bool Player::UpdateSkillPro(uint16 SkillId, int32 Chance, uint32 step)
}

GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, SkillId);

#ifdef BUILD_ELUNA
sEluna->OnSkillChange(this, SkillId, new_value);
#endif
DEBUG_LOG("Player::UpdateSkillPro Chance=%3.1f%% taken", Chance / 10.0);
return true;
}
Expand Down

0 comments on commit 9adbcf6

Please sign in to comment.