When the AI’s fortress gate is attacked while there are units in the deployment stack, it will not assign the damage to the units and will instead take the damage to its gate and retaliate as normal.