Welcome to healthcaremagic.
Well it was very dangerous thing your friend did.
Such long periods of electrocution will cause damage to structures and proteins
in the muscle and ill cause the problems he has now.
He has to do good exercises which will wash out the abnormal proteins and he can be able to gain his normal strength back.
Wish him speedy recovery.