Improve chase mode setting and attack mode cycle.