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 25819a5 commit 1758bfa
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 @@ -5247,6 +5247,10 @@ bool Player::UpdateSkillPro(uint16 SkillId, int32 Chance, uint16 diff)
if (skillStatus.uState != SKILL_NEW)
skillStatus.uState = SKILL_CHANGED;

#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 1758bfa

Please sign in to comment.