From db52b48cd616d4cd91f63ab472e583d139873755 Mon Sep 17 00:00:00 2001 From: miniduikboot Date: Sat, 8 Jan 2022 18:15:12 +0100 Subject: [PATCH] AC CheckMurder: Require half of cooldown When the Guardian Angel protects a player, the impostor that just missed their kill gets back half of their cooldown. Keeping track of whether or not the player was protected is more difficult due to how the Guardian Angel is implemented, so instead we halve the minimum time between kill in order to minimize false positives. --- src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs index 0b1abce..a89536e 100644 --- a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs +++ b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs @@ -55,7 +55,7 @@ namespace Impostor.Server.Net.Inner.Objects return false; } - return dateTimeProvider.UtcNow.Subtract(LastMurder).TotalSeconds >= game.Options.KillCooldown; + return dateTimeProvider.UtcNow.Subtract(LastMurder).TotalSeconds >= game.Options.KillCooldown / 2; } public void Serialize(IMessageWriter writer) -- 2.39.5