From: DrSmugleaf <10968691+DrSmugleaf@users.noreply.github.com> Date: Sat, 2 Aug 2025 22:59:48 +0000 (-0700) Subject: Fix ActionsSystem.IsCooldownActive always returning false if curTime is null (#39329) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=21eb662377ed0d267744287c870b0c9916444211;p=space-station-14.git Fix ActionsSystem.IsCooldownActive always returning false if curTime is null (#39329) --- diff --git a/Content.Shared/Actions/SharedActionsSystem.cs b/Content.Shared/Actions/SharedActionsSystem.cs index 69b15235c4..c4581cfbff 100644 --- a/Content.Shared/Actions/SharedActionsSystem.cs +++ b/Content.Shared/Actions/SharedActionsSystem.cs @@ -1022,6 +1022,7 @@ public abstract class SharedActionsSystem : EntitySystem public bool IsCooldownActive(ActionComponent action, TimeSpan? curTime = null) { // TODO: Check for charge recovery timer + curTime ??= GameTiming.CurTime; return action.Cooldown.HasValue && action.Cooldown.Value.End > curTime; }