private bool IsBattleValid() { if (Attackers.Count == 0 || Defenders.Count == 0) { return(false); } // Check to see if all units in the defense is dead // and make sure units can still see each other return(Attackers.AllAliveCombatObjects().Any(combatObj => Defenders.HasInRange(combatObj))); }