Gird the Spirit

1st-level · Abjuration

Casting Time 1 reaction, which you take when you or a creature within 30 feet of you is hit by an attack from an undead creature

Range 30 Feet

Components V, S

Duration 1 minute

Classes Cleric, Druid, Paladin

Your magic protects the target creature from the lifesapping energies of the undead. For the duration, the target has immunity to effects from undead creatures that reduce its ability scores, such as a shadow's Strength Drain, or its hit point maximum, such as a specter's Life Drain. This spell doesn't prevent damage from those attacks; it prevents only the reduction in ability score or hit point maximum.

Source: Deep Magic 5e · OGL/Open