A way to implement auto attack:

1) Target mob
2) Engage mob
3) Auto attack begins