From 43c677811f8467265595b8ecabc1138af7320779 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sat, 17 Apr 2021 01:29:11 +0200 Subject: [PATCH] afk kein wanted abtauchen --- ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs b/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs index 530e4741..7f6fe6ea 100644 --- a/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs +++ b/ReallifeGamemode.Server/Wanted/WantedEscapeTimer.cs @@ -77,7 +77,7 @@ namespace ReallifeGamemode.Server.Wanted dbContext.SaveChanges(); waTimer[user.Id] = WantedEscapeTime; } - else if (!isNearCop) + else if (!isNearCop && !player.IsAfk()) { player.TriggerEvent("SERVER:SetWantedFlash", true); waTimer[user.Id] -= 2500;