Skip to content

Commit

Permalink
FIX: Reinforcement objectives (#1863)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeZer2 authored Sep 14, 2024
1 parent 26e6cb9 commit c137b6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Content.Server/Antag/AntagRandomObjectivesSystem.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -31,6 +32,13 @@ private void OnAntagSelected(Entity<AntagRandomObjectivesComponent> ent, ref Aft
return;
}

//ss220 reinforcement objective fix start
if (TryComp<AutoTraitorComponent>(mind.OwnedEntity, out var autoTraitorComponent) && !autoTraitorComponent.GiveObjectives)
{
return;
}
//ss220 reinforcement objective fix end

var difficulty = 0f;
foreach (var set in ent.Comp.Sets)
{
Expand Down

0 comments on commit c137b6a

Please sign in to comment.