The AI is pretty dumb. I can understand it just hitting the nearest unit for max damage, but the AI's use of spells is retarded at best. It is also really easy to exploit the AI with phantom/cannon fodder units.
But that's okay. Really excellent AI is probably impossible, and anyway it would make the game harder.