You can't dodge autoattacks by moving behind the mob. Autoattacks work almost identical for player and npc/ai so you can test how it works on a target dummy. Start autoattacking, then turn your back to the target. You will still autoattack it. Same for mobs.