Example #1
0
        private static Obj_AI_Base GetCenterMinion(List <Obj_AI_Base> objects)
        {
            Obj_AI_Base highest = objects.FirstOrDefault();

            for (int i = 0; i < objects.Count; i++)
            {
                if (objects[i].GetAlliesInRange(_w.Width).Count > highest.GetAlliesInRange(_w.Width).Count)
                {
                    highest = objects[i];
                }
            }

            return(highest);
        }