My guess is that if the enemy opens the gates you don't get to deploy.
Which is how it should be if the enemy has had a spy open the gates for them