protected override bool GetBranch(AiContext context) { Unit.ArrivingTargets = context.GetAdjacentUnits(Unit.Coord) .Where(u => !u.IsAllyWith(Unit.Player)); return(Unit.ArrivingTargets.Any()); }
protected override bool GetBranch(AiContext context) { Unit.ArrivingTargets = context.GetAdjacentUnits(Unit.Coord) .Where(u => !u.IsAllyWith(Unit.Player)); return(Unit.ArrivingTargets.Any()); }