From 57a4bd750b910e495601a25368a94f3bcef0de02 Mon Sep 17 00:00:00 2001 From: Niam5 Date: Thu, 12 Oct 2023 17:08:18 -0500 Subject: [PATCH] Add new environmental death hook -Update Submodule --- 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 4e87a125b6..208ed1398f 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -727,6 +727,10 @@ uint32 Player::EnvironmentalDamage(EnviromentalDamage type, uint32 damage) } UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM, 1, type); + +#ifdef ELUNA + sEluna->OnPlayerKilledByEnvironment(this, type); +#endif } return final_damage; diff --git a/src/server/game/LuaEngine b/src/server/game/LuaEngine index e38a8fd40c..dc040cc1fa 160000 --- a/src/server/game/LuaEngine +++ b/src/server/game/LuaEngine @@ -1 +1 @@ -Subproject commit e38a8fd40c5a1f67258ddd7a4f0cdd27f25f0f57 +Subproject commit dc040cc1fa76b76b3f45eddec4e929db5b0df9c6