Auto-translated
I never have unicorns left because the computer destroys them first. And then they get archmages. Ents always remain.
By the way, did it seem to me, or does the computer really target units of level 5 from the entire army?
Ents are smaller, and it won't be possible to kill them right away... They are pushed to the very back.
First, stacks with the highest damage are targeted...
Second, stacks where the damage is not applied to a single unit.
Third, when the stack is closer...
In general, if you dig into the game files, you can find all the algorithms...
P.S. This is not a topic about AI, so let's get back to the topic of elves...
I really like druids... especially when there are many of them... They are very helpful...
Especially if you divide them into a couple of stacks, they cast spells and shoot very well.