Spawn Ward

Necromancy
Level: Cleric */Oracle * 5, Inquisitor * 5
Components: V, S
Casting Time: 1 Standard Action
Range: touch
Target: creature touched
Duration: 10 minutes/level
Saving Throw: Fortitude negates (harmless)
Spell Resistance: yes (harmless)
  The target becomes resistant to the effects of Energy Drain and blood drain attacks made by undead creatures, and cannot be made into undead spawn if killed while the spell is in effect. If the attacking undead's Hit Dice is less than or equal to your Caster Level, the blood drain or Energy Drain has no effect. If the attacking undead's Hit Dice are greater than your Caster Level, the undead must make a Fortitude Save (against the DC of the spell) with each attack for those special abilities to have any effect. The spell only prevents the Constitution damage from blood drain and negative levels from Energy Drain, but not any other effects of these attacks.