fix battle bug with mouse attack