Hmmm... I don't know much about attack prioritizing, but I don't think you can do anything with AI scripts about that behavior. My guess is that you need to use triggers and specific unit orders, but that would cause a lot of lag and require extensive coding.
Perhaps AIAndy knows a solution for this problem, if he has implemented something similar in AMAI. I'd wait for his response.