From 6ab7ccc36f1b6dac74706ec9a795963ff1b76e8f Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 30 Jul 2020 19:31:46 +0200 Subject: [PATCH] maybe fix Gangwar --- ReallifeGamemode.Server/Gangwar/Turf.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Gangwar/Turf.cs b/ReallifeGamemode.Server/Gangwar/Turf.cs index f9a41bff..ee9be72e 100644 --- a/ReallifeGamemode.Server/Gangwar/Turf.cs +++ b/ReallifeGamemode.Server/Gangwar/Turf.cs @@ -173,6 +173,7 @@ namespace ReallifeGamemode.Server.Gangwar } this.takeOver(this.Attacker); this.Def_Score = 0; + return; } else if (this.Att_Score < this.Def_Score) { @@ -192,7 +193,6 @@ namespace ReallifeGamemode.Server.Gangwar } this.takeOver(this.Owner); this.Def_Score = 0; - return; } } @@ -297,7 +297,7 @@ namespace ReallifeGamemode.Server.Gangwar List ownersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getOwner()).Select(u => u.Player).ToList(); List attackersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == attacker).Select(u => u.Player).ToList(); - if (ownersInGangwar.Count < 1 && attackersInGangwar.Count < 1) + if (ownersInGangwar.Count < 0 && attackersInGangwar.Count < 0) { List leaders = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == attacker && u.FactionLeader).Select(u => u.Player).ToList(); foreach (var l in leaders)