From a978731a00d9477203168aabc800b6bcc4ebbd25 Mon Sep 17 00:00:00 2001 From: Hondacrx Date: Wed, 4 Jun 2025 09:11:11 -0400 Subject: [PATCH] Core/Players: Fix resurrection timer missing if logging in while dead Port From (https://github.com/TrinityCore/TrinityCore/commit/781fe731dd8b438a9988347f68e09b5216b07652) --- Source/Game/Entities/Player/Player.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Game/Entities/Player/Player.cs b/Source/Game/Entities/Player/Player.cs index e1e9141ae..fcb7e00ca 100644 --- a/Source/Game/Entities/Player/Player.cs +++ b/Source/Game/Entities/Player/Player.cs @@ -4592,7 +4592,8 @@ namespace Game.Entities else m_deathExpireTime = now + PlayerConst.DeathExpireStep; } - int CalculateCorpseReclaimDelay(bool load = false) + + public int CalculateCorpseReclaimDelay(bool load = false) { Corpse corpse = GetCorpse(); if (load && corpse == null) @@ -4629,7 +4630,8 @@ namespace Game.Entities return (int)(delay * Time.InMilliseconds); } - void SendCorpseReclaimDelay(int delay) + + public void SendCorpseReclaimDelay(int delay) { CorpseReclaimDelay packet = new(); packet.Remaining = (uint)delay;