mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-19 15:51:58 +00:00
fix DA?
This commit is contained in:
1 parent
e685137e47
commit
9eddcf30d8
1 file changed
+9
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user