As long as you're moving in a single direction (not directly parallel with the archers), you should be safe to dispatch the sword robots.