Don't try to make sense of this game. I mean you can get through walls yet you can't kill their army if the gate's not open?

Oh no we can't touch those troops stranding right behind the gate, even though everything else has collapsed.

And walls regenerate...

The list goes on and on.