Skip to content

Commit

Permalink
Add new environmental death hook
Browse files Browse the repository at this point in the history
-Update Eluna Submodule
  • Loading branch information
Niam5 committed Oct 13, 2023
1 parent 137b1b5 commit 293d46a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/game/Entities/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,11 @@ uint32 Player::EnvironmentalDamage(EnviromentalDamage type, uint32 damage)

uint32 final_damage = DealDamage(this, damage, nullptr, damageType, SPELL_SCHOOL_MASK_NORMAL, nullptr, false);

#ifdef BUILD_ELUNA
if (!IsAlive())
sEluna->OnPlayerKilledByEnvironment(this, type);
#endif

if (!IsAlive())
{
if (type == DAMAGE_FALL) // DealDamage not apply item durability loss at self damage
Expand Down

0 comments on commit 293d46a

Please sign in to comment.