An excavator at an open-cut coal mine struck an overhead powerline and caused an electrical discharge over the cab.