I tried giving a powerfull charge effect to cavalry's primary weapon: a lance, and a powerfull normal attack for their secondary weapon: a sword.

problem is that the AI doesnt switch weapons (the player can by alt+clicking), so their cavalry keeps using lances in close combat, while the player cav annihilates them with swords.

Any chance there is a way to make the AI use secondary weapons ?