You could use an area to detect if player is in range, and if it is, use a timer to have the enemy constantly attack if this is the case.
Or, on animation finished, you could have the enemy check if the player is still in range.
Another thing to try is check if the attack animation loops.