diff --git a/Modules/RPC.cs b/Modules/RPC.cs index 8a7f2a334..6ced0a7ab 100644 --- a/Modules/RPC.cs +++ b/Modules/RPC.cs @@ -1453,7 +1453,7 @@ internal static class RPC SendOption sendOption = SendOption.Reliable; - if (GameStates.CurrentServerType == GameStates.ServerType.Vanilla && Options.CurrentGameMode != CustomGameMode.Standard) + if (GameStates.CurrentServerType == GameStates.ServerType.Vanilla) sendOption = SendOption.None; MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(PlayerControl.LocalPlayer.NetId, (byte)CustomRPC.PlaySound, sendOption); diff --git a/Modules/Utils.cs b/Modules/Utils.cs index 760a2f1e7..b797e0950 100644 --- a/Modules/Utils.cs +++ b/Modules/Utils.cs @@ -3927,7 +3927,7 @@ public static class Utils nums[Options.GameStateInfo.MadmateCount]++; else if (pc.IsNeutralKiller()) nums[Options.GameStateInfo.NKCount]++; - else if (pc.Is(Team.Impostor)) + else if (pc.Is(Team.Impostor) || pc.Is(CustomRoles.DoubleAgent)) nums[Options.GameStateInfo.ImpCount]++; else if (pc.Is(Team.Crewmate)) nums[Options.GameStateInfo.CrewCount]++; diff --git a/Patches/ChatCommandPatch.cs b/Patches/ChatCommandPatch.cs index 2af8299b8..8eca3cfb2 100644 --- a/Patches/ChatCommandPatch.cs +++ b/Patches/ChatCommandPatch.cs @@ -859,7 +859,7 @@ internal static class ChatCommands return; } - if (!targetState.MainRole.Is(Team.Crewmate) || targetState.MainRole == CustomRoles.GM) + if (!targetState.MainRole.Is(Team.Crewmate) || targetState.MainRole is CustomRoles.GM or CustomRoles.Trickster) { RPC.PlaySoundRPC(player.PlayerId, Sounds.SabotageSound); Utils.SendMessage("\n", player.PlayerId, GetString("Imitator.TargetMustBeCrew"), importance: MessageImportance.High); diff --git a/Roles/Standard/Coven/Shadow.cs b/Roles/Standard/Coven/Shadow.cs index 2059c424b..6676b5348 100644 --- a/Roles/Standard/Coven/Shadow.cs +++ b/Roles/Standard/Coven/Shadow.cs @@ -196,4 +196,9 @@ public class Shadow : CovenBase Utils.RpcChangeSkin(pc, OriginalOutfit); } } + + public override void OnReceiveNecronomicon() + { + SetKillCooldown(ShadowId); + } } \ No newline at end of file