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)