Can anyone tell me if and how i can get this code to get the numbers of unfriendly players measured from Me.CurrentTarget? 
I have tried and tried and tried......

Code:
public int GetNumUnFriendlyPlayersInRange(int range)
{
List<WoWPlayer> unfriendlyPlayerList = new List<WoWPlayer>();
List<WoWPlayer> playersList = ObjectManager.GetObjectsOfType<WoWPlayer>(false);
foreach (WoWPlayer thing in playersList)
{
if (thing.Distance > range ||
thing.IsTotem ||
thing.Dead ||
thing.IsFriendly ||
!thing.IsPlayer
)
{
continue;
}
unfriendlyPlayerList.Add(thing);
}
return unfriendlyPlayerList.Count();
}
I have tried and tried and tried......