I’m not sure if this is intended behaviour, but if you are using a flail against an enemy using shield wall, your chance to hit is lowered by their shieldwall bonus.
It just seems odd that flails ignore the normal shield bonus but not the extra shieldwall bonus.