fix bloodlust seeing imps after r1

This commit is contained in:
Gurge44 committed 2026-04-20 08:12:25 +02:00
1 parent 45a869d608
commit 2ff8e65ace
1 file changed
+5 -1
+5 -1
View File
@@ -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);
}