From: miniduikboot Date: Fri, 14 Jan 2022 18:47:58 +0000 (+0100) Subject: Add comment to clarify why this exists X-Git-Tag: v1.7.0~15^2 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=7132dc2d38dcb286ba6c370b9f7d7cb569767c7c;p=rhonda%2Fimpostor.git Add comment to clarify why this exists --- diff --git a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs index a89536e..7b0c248 100644 --- a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs +++ b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs @@ -55,6 +55,11 @@ namespace Impostor.Server.Net.Inner.Objects return false; } + // In 2021.11.9 the Guardian Angel was created, which was unfortunately implemented in such a way that + // it is hard to determine accurately whether a kill was prevented or not. When a kill was prevented, + // the impostor has a cooldown of half the usual duration. As a workaround we always assume the kill was + // prevented and the impostor only has half of its cooldown. + // FIXME when the base game improved their implementation. return dateTimeProvider.UtcNow.Subtract(LastMurder).TotalSeconds >= game.Options.KillCooldown / 2; }