maybe fix Gangwar
This commit is contained in:
@@ -173,6 +173,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
|||||||
}
|
}
|
||||||
this.takeOver(this.Attacker);
|
this.takeOver(this.Attacker);
|
||||||
this.Def_Score = 0;
|
this.Def_Score = 0;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else if (this.Att_Score < this.Def_Score)
|
else if (this.Att_Score < this.Def_Score)
|
||||||
{
|
{
|
||||||
@@ -192,7 +193,6 @@ namespace ReallifeGamemode.Server.Gangwar
|
|||||||
}
|
}
|
||||||
this.takeOver(this.Owner);
|
this.takeOver(this.Owner);
|
||||||
this.Def_Score = 0;
|
this.Def_Score = 0;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -297,7 +297,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
|||||||
List<Player> ownersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getOwner()).Select(u => u.Player).ToList();
|
List<Player> ownersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getOwner()).Select(u => u.Player).ToList();
|
||||||
List<Player> attackersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == attacker).Select(u => u.Player).ToList();
|
List<Player> 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<Player> leaders = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == attacker && u.FactionLeader).Select(u => u.Player).ToList();
|
List<Player> 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)
|
foreach (var l in leaders)
|
||||||
|
|||||||
Reference in New Issue
Block a user