You could change the head gasket yourself granted it did not damage the rings, cylinder walls, etc (usually does not happen unless it gets extremely hot, from my experience anyway as a shade tree mechanic). Take the intake off, take the heads off and bring them to a machine shop to check and make sure they are "true" as in perfectly straight, no warpage, and have them magnaflux them to check for cracks. Better safe than sorry.
Much, much cheaper than a rebuilt engine. Head gaskets typicaly blow short of damaging the entire engine. If it got hot enough to actually lose power and shut down on you, well......that is a different story. Good luck none the less and hate to hear this news.