Ulmaguest works like so:

Caster's max HP - caster's current HP. It hits for the same amount of damage that the caster has received. Much like Beowulf's Shock ability.