Core/Players: Fix resurrection timer missing if logging in while dead
Port From (https://github.com/TrinityCore/TrinityCore/commit/781fe731dd8b438a9988347f68e09b5216b07652)
This commit is contained in:
@@ -4592,7 +4592,8 @@ namespace Game.Entities
|
|||||||
else
|
else
|
||||||
m_deathExpireTime = now + PlayerConst.DeathExpireStep;
|
m_deathExpireTime = now + PlayerConst.DeathExpireStep;
|
||||||
}
|
}
|
||||||
int CalculateCorpseReclaimDelay(bool load = false)
|
|
||||||
|
public int CalculateCorpseReclaimDelay(bool load = false)
|
||||||
{
|
{
|
||||||
Corpse corpse = GetCorpse();
|
Corpse corpse = GetCorpse();
|
||||||
if (load && corpse == null)
|
if (load && corpse == null)
|
||||||
@@ -4629,7 +4630,8 @@ namespace Game.Entities
|
|||||||
|
|
||||||
return (int)(delay * Time.InMilliseconds);
|
return (int)(delay * Time.InMilliseconds);
|
||||||
}
|
}
|
||||||
void SendCorpseReclaimDelay(int delay)
|
|
||||||
|
public void SendCorpseReclaimDelay(int delay)
|
||||||
{
|
{
|
||||||
CorpseReclaimDelay packet = new();
|
CorpseReclaimDelay packet = new();
|
||||||
packet.Remaining = (uint)delay;
|
packet.Remaining = (uint)delay;
|
||||||
|
|||||||
Reference in New Issue
Block a user