You're always getting hit when you do my strat.
You're in a box, basically, with some movement space.
Simple protection from the stuff that WAS blocked by walls.
The damage isn’t much, but it's significantly more impactful with armour that doesn't have much protection.
The moonlord had a couple attacks that went through walls, and they didn't have too much of an effect on me.
(But this is imgflip, I stopped playing a couple years ago and my bacon's finished cooking.