Is it possible to make a single unit stronger or weaker against another unique unit?

In my mod I have created a unique unit but it would be difficult for me to be weak against the Huskarls.
In the AGE in the Attacks and Armors section, a unit can be strong or weak against different classes such as: infantry, archers, cavalry, heroes, siege weapons, etc., but it is not possible to put a specific unit as weak against another specific unit. Is there any way to do this either with effects or with tasks?