This commit is contained in:
Gurge44 committed 2026-05-23 13:36:56 +02:00
1 parent e685137e47
commit 9eddcf30d8
1 file changed
+9
+9
View File
@@ -1045,6 +1045,15 @@ internal static class BeginImpostorPatch
{
CustomRoles role = PlayerControl.LocalPlayer.GetCustomRole();
if (PlayerControl.LocalPlayer.IsImpostor() && role != CustomRoles.DoubleAgent && CustomRoleSelector.RoleResult.ContainsValue(CustomRoles.DoubleAgent))
{
foreach (var pc in Main.CachedAllPlayerControls())
{
if (pc.Is(CustomRoles.DoubleAgent) && !pc.AmOwner)
yourTeam.Add(pc);
}
}
if (PlayerControl.LocalPlayer.IsImpostor() && Options.ImpKnowWhosMadmate.GetBool())
{
foreach (var pc in Main.CachedAllPlayerControls())