Fix mid round antags not starting (#28523)

This commit is contained in:
AJCM-git
2024-06-02 12:52:40 -04:00
committed by GitHub
parent 77a3d6c6f1
commit 9a23a6c695

View File

@@ -98,7 +98,11 @@ public abstract class StationEventSystem<T> : GameRuleSystem<T> where T : ICompo
if (!GameTicker.IsGameRuleAdded(uid, ruleData))
continue;
if (stationEvent.EndTime != null && Timing.CurTime >= stationEvent.EndTime && GameTicker.IsGameRuleActive(uid, ruleData))
if (!GameTicker.IsGameRuleActive(uid, ruleData) && !HasComp<DelayedStartRuleComponent>(uid))
{
GameTicker.StartGameRule(uid, ruleData);
}
else if (stationEvent.EndTime != null && Timing.CurTime >= stationEvent.EndTime && GameTicker.IsGameRuleActive(uid, ruleData))
{
GameTicker.EndGameRule(uid, ruleData);
}