There is a bug in the bug: dont walk to battle, walk back in to the building behind you and zoom in so that you dont see the robot anymore but the enemy's. After that you just stomp the droids getting at you, they will not shoot you. I've made this story two times (without bugs), can't remeber if the battle lasted this long using this work a round, but I managed to get through
Source: