Been trying to make a small mod that wouldn't let pike units go into pike formation while engaged (essentially make them work as they did pre patch 15).

Anyone know if this is possible?

I've been digging around the db in unit_abilities_tables, unit_special_abilities_tables, and unit_special_ability_effects_tables but haven't seen any sort of ability prerequisite input.

Anyone got any suggestions? Maybe its somewhere buried in the animation fragments?