I worked out the bug. One of the attack animations moves you forwards and so moves you into the wall. It shouldn't happen now
Awesome!