Enervation

4th-level necromancy

Casting Time: 1 action

Range: 30 feet

Components: V, S

Duration: 1 hour

You strike a creature of your choice in range with a black, crackling bolt of negative energy. Make a ranged spell attack against the target. On a hit, the target gains two levels of exhaustion plus an additional level for every five points the attack roll exceeded the target's AC by. Undead targets instead gain 3d8 temporary hit points per exhaustion level they would have gained. This spell cannot increase a target's exhaustion level above five unless it has 50 hit points or fewer.

At the end of each of its turns, the target can make a Constitution saving throw against the spell. On a success, the spell ends.

At Higher Levels. When you cast this spell using a spell slot of 5th level or higher, you can target one additional creature for each slot level above 4th. The creatures must be within 30 feet of each other when you target them.

Energy Drain

9th-level necromancy

Casting Time: 1 action

Range: 30 feet

Components: V, S

Duration: 24 hours

You strike any number of creatures of your choice in range with black crackling bolts of negative energy. Make a ranged spell attack against each target. On a hit, the target gains three levels of exhaustion plus an additional level for every five points the attack roll exceeded the target's AC by. Undead targets instead gain 3d8 temporary hit points per exhaustion level they would have gained. This spell cannot increase a target's exhaustion level above five unless it has 100 hit points or fewer.

At the end of each of its turns, the target can make a Constitution saving throw against the spell. On a success, the spell ends for that target.