Skip to content

Commit

Permalink
UpstreamMoment
Browse files Browse the repository at this point in the history
  • Loading branch information
Alwayswannahunt committed Dec 6, 2024
1 parent 065c8dc commit d482b13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private bool TryPickRandomPerson(EntityUid objective, EntityUid objectiveOwnerMi
if (targetObjective.Target != null)
return false;

var whitelistedPlayers = _mind.GetAliveHumansExcept(objectiveOwnerMind)
var whitelistedPlayers = _mind.GetAliveHumans(objectiveOwnerMind)
.Where(x => CorrectJob(x) && (blacklist == null || !EntityHasAnyComponent(x, blacklist)))
.ToList();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private void OnPersonAssigned(Entity<IntimidatePersonConditionComponent> entity,
if (targetObjectiveComponent.Target != null)
return;

var targetableMinds = _mind.GetAliveHumansExcept(args.MindId)
var targetableMinds = _mind.GetAliveHumans(args.MindId)
.Where(x => TryComp<MindComponent>(x, out var mindComponent)
&& !HasComp<DamageReceivedTrackerComponent>(GetEntity(mindComponent.OriginalOwnedEntity)))
.ToList();
Expand Down

0 comments on commit d482b13

Please sign in to comment.