Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isNonNull = !Equals(null, Global.CurrentProfile.AvoidMobs) &&
- Global.CurrentProfile.AvoidMobs.Count > 0;
- for (int i = weights.Count - 1; i >= 0; i--)
- {
- if (isNonNull)
- {
- if (Global.CurrentProfile.AvoidMobs.Contains(weights[i].Unit.Entry))
- weights.RemoveAt(i);
- }
- if (weights.Count - i == MaxTargets)
- break;
- TargetList.Add(weights[i].Unit);
- GuiList.Add(string.Format("{0} Distance:{1} {2}", weights[i].Unit.Name, Math.Floor(weights[i].Unit.Distance), Environment.NewLine));
- }
Add Comment
Please, Sign In to add comment