1. auto attack (bug fixed)