Improves automatic behavior when getting attacked.