From 8ff8a2aa2a037674ad9c21c4e70826d43ada3e11 Mon Sep 17 00:00:00 2001 From: Niam5 Date: Sat, 14 Oct 2023 23:45:03 -0500 Subject: [PATCH] Add new Eluna hook --- src/server/game/Entities/Player/Player.cpp | 4 ++++ src/server/game/LuaEngine | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index d18b01ce0d..1fd5900373 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -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()) diff --git a/src/server/game/LuaEngine b/src/server/game/LuaEngine index 1edc007459..f8f97c55f7 160000 --- a/src/server/game/LuaEngine +++ b/src/server/game/LuaEngine @@ -1 +1 @@ -Subproject commit 1edc007459b70dc0f9a06e07da3cc340aaa6f349 +Subproject commit f8f97c55f79a7563c29b0a7c917babef96cdbe0c