File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1313using TownOfUs . Options . Roles . Impostor ;
1414using TownOfUs . Roles . Crewmate ;
1515using TownOfUs . Roles . Impostor ;
16+ using TownOfUs . Roles . Other ;
1617using TownOfUs . Utilities ;
1718using UnityEngine ;
1819using Random = System . Random ;
@@ -54,6 +55,7 @@ public void AssignTargets()
5455 ! x . HasDied ( ) &&
5556 ! x . HasModifier < ExecutionerTargetModifier > ( ) &&
5657 ! x . HasModifier < EgotistModifier > ( ) &&
58+ ! SpectatorRole . TrackedSpectators . Contains ( x . Data . PlayerName ) &&
5759 ( x . Data . Role is not ILoyalCrewmate loyalCrew || loyalCrew . CanBeTraitor ) ) . ToList ( ) ;
5860
5961 if ( filtered . Count == 0 )
Original file line number Diff line number Diff line change 1313using TownOfUs . Options . Modifiers ;
1414using TownOfUs . Options . Modifiers . Alliance ;
1515using TownOfUs . Roles ;
16+ using TownOfUs . Roles . Other ;
1617using TownOfUs . Utilities ;
1718using UnityEngine ;
1819
@@ -66,6 +67,7 @@ public void AssignTargets()
6667 var filtered = PlayerControl . AllPlayerControls . ToArray ( )
6768 . Where ( x => x . IsCrewmate ( ) &&
6869 ! x . HasDied ( ) &&
70+ ! SpectatorRole . TrackedSpectators . Contains ( x . Data . PlayerName ) &&
6971 ( x . Data . Role is not ILoyalCrewmate loyalCrew || loyalCrew . CanBeCrewpostor ) &&
7072 ! x . HasModifier < AllianceGameModifier > ( ) &&
7173 ! x . HasModifier < ExecutionerTargetModifier > ( ) ) . ToList ( ) ;
Original file line number Diff line number Diff line change 1717using TownOfUs . Options . Modifiers . Alliance ;
1818using TownOfUs . Roles ;
1919using TownOfUs . Roles . Neutral ;
20+ using TownOfUs . Roles . Other ;
2021using TownOfUs . Utilities ;
2122using UnityEngine ;
2223using Random = System . Random ;
@@ -91,6 +92,7 @@ public void AssignTargets()
9192 var players = PlayerControl . AllPlayerControls . ToArray ( )
9293 . Where ( x => ! x . HasDied ( ) && ! x . HasModifier < ExecutionerTargetModifier > ( ) &&
9394 ! x . HasModifier < AllianceGameModifier > ( ) &&
95+ ! SpectatorRole . TrackedSpectators . Contains ( x . Data . PlayerName ) &&
9496 ( x . Data . Role is not IUnlovable unlovable || ! unlovable . IsUnlovable ) && ( loveOpt . NeutralLovers || ! x . IsNeutral ( ) ) ) . ToList ( ) ;
9597 players . Shuffle ( ) ;
9698
You can’t perform that action at this time.
0 commit comments