Example #1
0
 public static int EnemiesNearPlayer(float radius)
 {
     return(EnemyUnit.Count(eu => eu.Distance2D(Core.Player) - eu.CombatReach - Core.Player.CombatReach <= radius));
 }
Example #2
0
 public static int EnemiesNearTarget(float radius)
 {
     return(Core.Player.CurrentTarget == null
         ? 0
         : EnemyUnit.Count(eu => eu.Distance2D(Core.Player.CurrentTarget) - eu.CombatReach - Core.Player.CurrentTarget.CombatReach <= radius));
 }