Make 2 abilities from Rejuvenation, and then a dummy ability. One will heal the target, and another will have a negative heal (meaning, it deals damage)
When a unit starts the effect of the dummy ability, check if the unit is undead. If so, make a dummy unit cast the healing ability, if not, make it cast the damaging ability.