Enervation

Schools: Necromancy
Level: Sor/Wiz 4
Components: V, S
Casting Time: 1 action
Range: Medium (100 ft. + 10 ft./level)
Effect: Ray of negative energy
Duration: Instantaneous
Saving Throw: None
Spell Resistance: Yes

The character must make a ranged touch attack to hit. If the attack succeeds, the subject gains 1d4 negative levels.

If the ray strikes an undead creature, it gives that creature 5 temporary hit points per two caster levels (maximum 25 temporary hit points) for 1 hour.