I added some new code to the RevDCM core, that might make it into BBAI, though most of it wouldn't effect a non modded game. Basically the old code went like this:
If player feels it is danger:
-Look for unit to attach to with specific UnitAI type to attach to, if there is a good one, do it...