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

Commit

Permalink
Add new environmental death hook
Browse files Browse the repository at this point in the history
-Update Submodule
  • Loading branch information
Niam5 committed Oct 12, 2023
1 parent 7059bc6 commit 57a4bd7
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 @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/server/game/LuaEngine

0 comments on commit 57a4bd7

Please sign in to comment.