Wow! What happened to your friend?
Instant death.
There are devices called lock out tags. When ever working on high voltage systems the breakers or master switches must be off and properly tagged prior to working on this stuff. For some odd reason he worked on it hot.