From 9eddcf30d8aa49ff99de9a0e5405861d2cceea5d Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Sat, 23 May 2026 13:36:56 +0200 Subject: [PATCH] fix DA? --- Patches/IntroPatch.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Patches/IntroPatch.cs b/Patches/IntroPatch.cs index a79ae5d75..d0edba9c1 100644 --- a/Patches/IntroPatch.cs +++ b/Patches/IntroPatch.cs @@ -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())