Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

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

#ifdef ELUNA
sEluna->OnSkillChange(this, skillId, new_value);
#endif

UpdateSkillEnchantments(skillId, value, new_value);
UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL, skillId);
if (Guild* guild = GetGuild())
Expand Down

0 comments on commit 8ff8a2a

Please sign in to comment.