Make ghost boo action start with a cooldown. (#12936)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user