mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Gamerules with occursDuringRoundEnd=false don't run only when roundend is certain (#42199)
gamerule cannot run if we can recall
This commit is contained in:
parent
42a9292e9c
commit
4b960f4bfb
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ public sealed partial class StationEventComponent : Component
|
|||
public TimeSpan? EndTime;
|
||||
|
||||
/// <summary>
|
||||
/// If false, the event won't trigger during ongoing evacuation.
|
||||
/// If false, the event won't trigger after the evacuation shuttle is called and cannot be recalled anymore.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool OccursDuringRoundEnd = true;
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ public sealed partial class EventManagerSystem : EntitySystem
|
|||
return false;
|
||||
}
|
||||
|
||||
if (_roundEnd.IsRoundEndRequested() && !stationEvent.OccursDuringRoundEnd)
|
||||
if (_roundEnd.IsRoundEndRequested() && !stationEvent.OccursDuringRoundEnd && !_roundEnd.CanCallOrRecall())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue