Mechanical dream

The Fifth Level Dream spell at first glance seemed really delicious, it now looks like an absolute nightmare after a second comb.

Is the damage to the spell related to the save? Or does it occur regardless of the outcome?