Usually we don't think we have pushed the envelope until the consequences hit is between the eyes, so to speak. Good thing you had a friend close.
***Lightening: Climbing over a cow gate and tree next to it was hit. Knocked me flat, but not out***
If memory serves it is called 'splatter'; sometimes it is relatively harmless and sometimes it can be deadly. Here in the lightning capitol of the world (Central Florida) they warn not to take shelter under a tree in a lightning storm. Of course yours was coincidental.
Have you noticed any possible long term effects? In my case the path of the current played a role, eventually earning a disability rating. With splatter I don't imagine the path of current is as much of a factor. Still, since my event a great deal of good medical research has been done on 'after effects' of lightning strike and electric shock. When I finally got to a doctor he said, 'If you survived you're OK.' That was the medical view in 1987. I can testify that that has proven untrue.
Even as a stupid teenager we knew better. You don't go deep without a buddy. As for long term effects from the lightening, none that I know of. I was thrown off the fence immediately and walked away unscathed besides my hair being wonky for a few days.
My quandary is always this: If I get under the tree then the tree might get hit by lightning and I might get hurt. But if I move AWAY from the tree, suddenly I become the tallest object in the vicinity! I guess the answer is you gotta lie down, in the open (or a ditch if you’re lucky), but I imagine that is hard as heck to do in the moment.