public static int EnemiesNearPlayer(float radius) { return(EnemyUnit.Count(eu => eu.Distance2D(Core.Player) - eu.CombatReach - Core.Player.CombatReach <= radius)); }
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)); }