mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix bloodlust seeing imps after r1
This commit is contained in:
1 parent
45a869d608
commit
2ff8e65ace
1 file changed
+5
-1
+5
-1
@@ -3792,7 +3792,11 @@ public static class Utils
|
||||
{
|
||||
if (pc.Is(CustomRoles.Bloodlust))
|
||||
{
|
||||
pc.RpcSetRoleDesync(RoleTypes.Impostor, pc.OwnerId);
|
||||
CustomRpcSender sender = CustomRpcSender.Create("Bloodlust fix", SendOption.Reliable);
|
||||
bool hasValue = false;
|
||||
hasValue |= sender.RpcSetRole(pc, RoleTypes.Impostor, pc.OwnerId);
|
||||
Main.EnumeratePlayerControls().DoIf(x => x.IsImpostor(), x => hasValue |= sender.RpcSetRole(x, RoleTypes.Crewmate, pc.OwnerId));
|
||||
sender.SendMessage(dispose: !hasValue);
|
||||
LateTask.New(() => pc.SetKillCooldown(), 0.2f, log: false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user