Fixed an error with attacking the most recently checked enemy instead of the weakest.