diff --git a/Content.Server/Ghost/GhostSystem.cs b/Content.Server/Ghost/GhostSystem.cs index 13b99b3e0f..43ab43585a 100644 --- a/Content.Server/Ghost/GhostSystem.cs +++ b/Content.Server/Ghost/GhostSystem.cs @@ -116,8 +116,12 @@ namespace Content.Server.Ghost eye.VisibilityMask |= (uint) VisibilityFlags.Ghost; } - component.TimeOfDeath = _gameTiming.RealTime; + var time = _gameTiming.CurTime; + component.TimeOfDeath = time; + // TODO ghost: remove once ghosts are persistent and aren't deleted when returning to body + if (component.Action.UseDelay != null) + component.Action.Cooldown = (time, time + component.Action.UseDelay.Value); _actions.AddAction(uid, component.Action, null); }