Are you sure that your opponent really hit you through a wall? Your opponent can run and attack at the same time, so it can happen that the attack animation starts during the walk/run animation and that could look like they attack you through a wall although it's perfectly fine pathfinding.