From a2b62c4ca488ab39777b15c6a6bd1b84d8b4b0a0 Mon Sep 17 00:00:00 2001 From: Ed Date: Tue, 10 Dec 2024 00:40:50 +0300 Subject: [PATCH] Update GhostSystem.cs --- Content.Server/Ghost/GhostSystem.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Content.Server/Ghost/GhostSystem.cs b/Content.Server/Ghost/GhostSystem.cs index bd03e36a92..dc8a1fed7d 100644 --- a/Content.Server/Ghost/GhostSystem.cs +++ b/Content.Server/Ghost/GhostSystem.cs @@ -213,13 +213,13 @@ namespace Content.Server.Ghost private void OnMapInit(EntityUid uid, GhostComponent component, MapInitEvent args) { - //if (_actions.AddAction(uid, ref component.BooActionEntity, out var act, component.BooAction) - // && act.UseDelay != null) - //{ - // var start = _gameTiming.CurTime; - // var end = start + act.UseDelay.Value; - // _actions.SetCooldown(component.BooActionEntity.Value, start, end); - //} + if (_actions.AddAction(uid, ref component.BooActionEntity, out var act, component.BooAction) + && act.UseDelay != null) + { + var start = _gameTiming.CurTime; + var end = start + act.UseDelay.Value; + _actions.SetCooldown(component.BooActionEntity.Value, start, end); + } _actions.AddAction(uid, ref component.ToggleGhostHearingActionEntity, component.ToggleGhostHearingAction); _actions.AddAction(uid, ref component.ToggleLightingActionEntity, component.ToggleLightingAction);