The weapon passes through the walls.

It’s explained by the author in detail in the comments.