It is a bug, both moving towards the character out of turn and taking repeated damage from teleport.