So i first find the Highest FP AI, if there are just one with that FP value, I look no more and that one fires. If there are more than one, then I select the one that is farthest from a unit, finally If there are more than one equally far then I choose among them the one which unit has the lowest DV.
I think the distance is used last, to break tie.
HF AI fire(attack) lowest DV Unit. If there is 2 or more units with the same Defense Value, (who can be fired upon), then use distance breaker specified in the order.