Allow changing the formation, while under attack. Fixes #1624. Patch by Simikolon. This was SVN commit r12911.