Or you could just turn around to stop attacking if autoattack for ranged attacks existed.