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

Negative Energy Ray

(Tome and Blood: A Guidebook to Wizards and Sorcerers)

Necromancy
Level: Sorcerer 1, Wizard 1,
Components: V, S, M,
Casting Time: 1 action
Range: Close (25 ft. + 5 ft./2 levels)
Effect: Ray
Duration: Instantaneous
Saving Throw: Will half (see text)
Spell Resistance: Yes

A ray of negative energy projects from your pointing finger.
You must succeed at a ranged touch attack with the ray to deal damage to a target.
The ray deals 1d6 points of damage to a living creature.
For every two extra levels of experience past 1st, you deal an extra 1d6 points of damage.
You deal 2d6 at 3rd level, 3d6 at 5th level, 4d6 at 7th level, and a maximum of 5d6 points of damage at 9th level or higher.
Since undead are powered by negative energy, this spell cures them of a like amount of damage, rather than harming them.
Material Component: A mirror, which you break.