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 28, 2023
1 parent 6ff2c32 commit 7cb8191
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5912,6 +5912,10 @@ bool Player::UpdateSkillPro(uint16 SkillId, int32 Chance, uint16 diff)
}
}
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 7cb8191

Please sign in to comment.