I can't really think at the moment, but I know you have to have it so somehow the enemy is in the condition part, so it picks the individual enemy instead of all of them.
Because your code is saying when "player" gets in range of any enemy, all of the enemies are going to attack.