Warning: This is 3.0 Edition material. It is possible that there is more recent 3.5 Edition version.
Inaccurate?

Devastate Undead

(Lords of Darkness)

Necromancy
Level: Sorcerer 8, Wizard 8,
Components: V, S, AF,
Casting Time: 1 action
Range: Close (25 ft. + 5 ft./2 levels)
Target: Undead creatures, no two of which can be more than 30 ft. apart
Duration: Instantaneous
Saving Throw: Fortitude negates
Spell Resistance: Yes

This spell was created by the lich Larloch to power himself at the expense of his own undead minions.
The target undead creatures must succeed at Fortitude saving throws or be destroyed, just as if hit by a disruption weapon.
Creatures that are not undead, and undead with Hit Dice greater than the caster's caster level, are unaffected by this spell.
If an undead creature is destroyed by this spell, a portion of the negative energy that gave it unlife flows back to the caster.
This negative energy deals (if the caster is living) or cures (if the caster is undead) 5 hit points of damage per hit die of the destroyed undead.
Focus: A disruption weapon of any kind.