mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Add Blind & Pawn
This commit is contained in:
1 parent
9a8e7073bc
commit
0d2307054c
12 files changed
+84
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user