From c137b6af3272c1a457d377f866481a34491e0886 Mon Sep 17 00:00:00 2001 From: ReeZer2 <63300653+ReeZer2@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:58:21 +0300 Subject: [PATCH] FIX: Reinforcement objectives (#1863) --- Content.Server/Antag/AntagRandomObjectivesSystem.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Content.Server/Antag/AntagRandomObjectivesSystem.cs b/Content.Server/Antag/AntagRandomObjectivesSystem.cs index b60759a3d5cc..8091c3d8857b 100644 --- a/Content.Server/Antag/AntagRandomObjectivesSystem.cs +++ b/Content.Server/Antag/AntagRandomObjectivesSystem.cs @@ -1,5 +1,6 @@ using Content.Server.Antag.Components; using Content.Server.Objectives; +using Content.Server.Traitor.Components; using Content.Shared.Mind; using Content.Shared.Objectives.Components; using Content.Shared.Objectives.Systems; @@ -31,6 +32,13 @@ private void OnAntagSelected(Entity ent, ref Aft return; } + //ss220 reinforcement objective fix start + if (TryComp(mind.OwnedEntity, out var autoTraitorComponent) && !autoTraitorComponent.GiveObjectives) + { + return; + } + //ss220 reinforcement objective fix end + var difficulty = 0f; foreach (var set in ent.Comp.Sets) {