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 Jan 1, 2024
1 parent 4a5c4e6 commit e17cf41
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 @@ -5596,6 +5596,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 e17cf41

Please sign in to comment.