Guest User

Untitled

a guest
Jul 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. bool isNonNull = !Equals(null, Global.CurrentProfile.AvoidMobs) &&
  2. Global.CurrentProfile.AvoidMobs.Count > 0;
  3.  
  4. for (int i = weights.Count - 1; i >= 0; i--)
  5. {
  6. if (isNonNull)
  7. {
  8. if (Global.CurrentProfile.AvoidMobs.Contains(weights[i].Unit.Entry))
  9. weights.RemoveAt(i);
  10. }
  11. if (weights.Count - i == MaxTargets)
  12. break;
  13. TargetList.Add(weights[i].Unit);
  14. GuiList.Add(string.Format("{0} Distance:{1} {2}", weights[i].Unit.Name, Math.Floor(weights[i].Unit.Distance), Environment.NewLine));
  15. }
Add Comment
Please, Sign In to add comment