Soul Bomb (5e Spell)
From D&D Wiki
|Casting time:||1 action|
|Range:||Self (20-foot radius)|
Your body violently explodes with life-destroying power, turning you into a specter-like creature for the duration. While in your specter form, you are invisible, petrified, and are immune to all damage other than psychic and force.
Any creature in a 25 foot radius of you when you cast the spell must make a Constitution save. On a successful save, the creature takes 2d12 necrotic damage.
On a failed save, a target takes 50 necrotic damage or damage equal to 75% of its hit points, whichever is lesser. The creature's type changes to undead for the duration. If the creature dies within this duration, it cannot be resurrected with any spell lower than 9th level.
At the end of the duration, you must make a DC 20 Constitution saving throw. If you fail by 10 or more, you die outright. If you fail by less than 10, you take 1d6 necrotic damage for each point of failure, but return to your normal form. If you succeed, you return to your normal form and regain 2d12 hit points for each creature affected by this spell that died within its duration.