/// <summary>
 /// Gets the wards close to another ward.
 /// </summary>
 /// <param name="w">The ward.</param>
 /// <returns></returns>
 private static List<Ward> GetWardsCloseTo(Ward w)
 {
     return WardTrackerVariables.detectedWards.Where(m => m.Position.Distance(w.Position, true) <= Math.Pow(w.WardTypeW.WardVisionRange, 2)).ToList();
 }
Beispiel #2
0
 /// <summary>
 /// Gets the wards close to another ward.
 /// </summary>
 /// <param name="w">The ward.</param>
 /// <returns></returns>
 private static List <Ward> GetWardsCloseTo(Ward w)
 {
     return(WardTrackerVariables.detectedWards.Where(m => m.Position.Distance(w.Position, true) <= Math.Pow(w.WardTypeW.WardVisionRange, 2)).ToList());
 }