]> git.deb.at Git - rhonda/impostor.git/commitdiff
Add comment to clarify why this exists
authorminiduikboot <mini@duikbo.at>
Fri, 14 Jan 2022 18:47:58 +0000 (19:47 +0100)
committerminiduikboot <mini@duikbo.at>
Fri, 14 Jan 2022 18:47:58 +0000 (19:47 +0100)
src/Impostor.Server/Net/Inner/Objects/InnerPlayerInfo.cs

index a89536e85ed21e7df04952a64baf917738b6d26f..7b0c248eb5f151da34fcf221ffb43c97c11308b2 100644 (file)
@@ -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;
         }