So, back in 2018, when the Tomb Kings dlc came out, this guy first reported this bug
Then, 9 months ago, this guy chimed in
And today, it was my turn
and it happened multiple times. Usually around the gate but also in the residences, as above. The unit is completely immobile until the battle has finished.
So maybe it's about time for a fix?