public static IEnumerable <Targets.Item> OrderChampions(IEnumerable <Targets.Item> targets) { if (targets == null) { return(new List <Targets.Item>()); } var targetList = targets.ToList(); foreach (var item in Items.Where(w => w.Weight > 0)) { UpdateMaxMinValue(item, targetList); } foreach (var target in targetList) { target.Weight = Items.Where(w => w.Weight > 0).Sum(w => CalculatedWeight(w, target)) / 100 * Heroes.GetPercentage(target.Hero); } return(Selected.Focus.Enabled && Selected.Focus.Force && targetList.Count > 1 ? new List <Targets.Item> { targetList.OrderByDescending(t => t.Weight).First() } : targetList.OrderByDescending(t => t.Weight).ToList()); }