The spells are in assets/python/cvspellinterface.py
There's a LOT of python governing dungeons by the way. They're really not simple, wow.
Also, apparently there's a chaince for the unit to become immortal as a result of lair exploration. Never had that result before. it seems to be a very small chance.
I can recall getting that promotion (it wears off after using once like Blood of Phoenix) in the past, but not at all lately. GP from lairs have become very rare.
With all the bad results, etc. they are still IMO one of the best features of the game.
