The AI goes after your hero, your healer, non-counter-attackers, non-obstacles (because of Solid State Shield), your weaker characters, and your less healthy characters [but not in that order of priority, and I might have missed something]. If it can kill one of you in one hit, it will.