AI
The AI will move closer to the player units determining who they will attack based on weapon advantage. If they don't have an advantage, they will determine whether the player unit has low health, if no other factors apply, they will move to the closest unit.