Skip to content

Commit

Permalink
Add new environmental death hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Oct 12, 2023
1 parent 51a77e1 commit cb3a89a
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 @@ -782,6 +782,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 cb3a89a

Please sign in to comment.