mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
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.
This commit is contained in:
1 parent
d7d7547182
commit
db52b48cd6
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user