or maybe something like prerequisite.neagtive but for unit

I have comando unit and have upgrade plugin building, but if unupgraded comando was built before plugin then upgraded comando is still able to be trained.
...I made two different infantry types for this system.