Fixed bug about nearest ally attacked