Add Blind & Pawn

This commit is contained in:
Gurge44 committed 2025-04-28 11:53:15 +02:00
1 parent 9a8e7073bc
commit 0d2307054c
12 files changed
+84 -3

No files matched your search

+1 -1
View File
@@ -1529,7 +1529,7 @@ internal static class ExtendedPlayerControl
void DoKill()
{
var sender = CustomRpcSender.Create("Send Noisemaker Alerts & Kill", SendOption.Reliable);
Main.PlayerStates.Values.DoIf(x => !x.IsDead && x.Role.SeesArrowsToDeadBodies, x => sender.RpcSetRole(target, RoleTypes.Noisemaker, x.Player.GetClientId()));
Main.PlayerStates.Values.DoIf(x => !x.IsDead && x.Role.SeesArrowsToDeadBodies && !x.SubRoles.Contains(CustomRoles.Blind), x => sender.RpcSetRole(target, RoleTypes.Noisemaker, x.Player.GetClientId()));
if (AmongUsClient.Instance.AmClient) killer.MurderPlayer(target, MurderResultFlags.Succeeded);
sender.AutoStartRpc(killer.NetId, 12);