- fix: Gulagged objective fix. (#130)

This commit is contained in:
Aviu00
2024-02-27 20:59:43 +09:00
committed by GitHub
parent 6b8dd3ce41
commit 292743ae3e
5 changed files with 18 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
using System.Linq;
using Content.Server._Miracle.Components;
using Content.Server.Changeling.Objectives.Components;
using Content.Server.Forensics;
using Content.Server.Mind;
@@ -184,6 +185,7 @@ public sealed class ChangelingConditionsSystem : EntitySystem
return;
var allHumans = _mind.GetAliveHumansExcept(args.MindId);
allHumans = allHumans.Where(x => !HasComp<GulagBoundComponent>(x)).ToList();
if (allHumans.Count == 0)
{
args.Cancelled = true;