From c17d62e23a68ac7d59eb8c76b5a4b45c2b38923d Mon Sep 17 00:00:00 2001 From: Niam5 Date: Sat, 14 Oct 2023 23:50:10 -0500 Subject: [PATCH] Add new Player hook --- src/game/Entities/Player.cpp | 4 ++++ src/game/LuaEngine | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game/Entities/Player.cpp b/src/game/Entities/Player.cpp index 22369fd000..902d690b9a 100644 --- a/src/game/Entities/Player.cpp +++ b/src/game/Entities/Player.cpp @@ -5526,6 +5526,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; } diff --git a/src/game/LuaEngine b/src/game/LuaEngine index 1edc007459..f8f97c55f7 160000 --- a/src/game/LuaEngine +++ b/src/game/LuaEngine @@ -1 +1 @@ -Subproject commit 1edc007459b70dc0f9a06e07da3cc340aaa6f349 +Subproject commit f8f97c55f79a7563c29b0a7c917babef96cdbe0c