feat(Core/Hooks): Add OnPlayerJustDied hook (#17973)

feat(Core/Hooks): Add OnPlayerJustDied
This commit is contained in:
avarishd
2023-12-11 00:06:23 +02:00
committed by GitHub
parent af03611faf
commit f476c8a6c9
4 changed files with 14 additions and 0 deletions

View File

@@ -4484,6 +4484,7 @@ void Player::KillPlayer()
if (corpseReclaimDelay >= 0)
SendCorpseReclaimDelay(corpseReclaimDelay);
sScriptMgr->OnPlayerJustDied(this);
// don't create corpse at this moment, player might be falling
// update visibility