Okay, I know you´re worried, calm down!
Seriously: herpes is not a virus that transfers through blood. It´s a virus that lives on skin and is transmitted through skin to skin contact. Even in this case it needs a feasible surface. Genital to genital, oral to genital, these are the main ways of transmission. In some cases it is possible to transmit it in other ways too, since herpes can occure in the "boxer short" area. So, if someone had a herpes ob on their butt or thigh and then rubbed that area heavily on the other persons´s "boxer short" area it is possible there would be a transmission.
But from what you describe there is NO risk. This goes for any std. The only possibility, but even this is a stretch, that your friend was hiv+, had a fresh cut and his blood would directly come in contact with a cut you have.
Most viruses are weak, they die quickly when they are outside of their prefaired area.
You need to relax and enjoy life

! I don´t know if this girl told your friend she has herpes, I guess so since you know about it. Anyway, if your friend is cool about it then you should not worry about it in any way. Perhaps your friend is one those good guys who understand that herpes is not the end of the world. Telling a partner, using condoms and perhaps antivirals to lessen shedding is what you need to do, and a lot of people are totally accepting of a herpes positive person