Got zapped by my Engine !

Stupid move that i did , the car ran weird and i open the hood and saw that one wire was off its plug but without the copper plug , the spark plug wire was just laying there on the side , didnt shut off the engine just wantes to plug it back to its place...my god , i was electrocuted for the 1st time , ill remember this for a long time , never happenned before , did you guys ever had a similar story , my leg hurts a bit and my back too , but im ok , i guess :)