Inflict wounds

Inflict light wounds is a necromancy spell that causes light damage to a touched living creature.

Effect
When laying your hand upon a creature, you channel negative energy that deals 1d8 points of damage +1 point per caster level (up to +5).

Since undead are powered by negative energy, this spell cures them of a like amount of damage, rather than harming them.