Ghost Lock
(Ghostwalk)Abjuration [Ectomancy]
Level: Cleric 2, Sorcerer 4, Wizard 4,
Components: V, S,
Casting Time: 1 action
Range: Close (25 ft. + 5 ft./2 levels)
Target: One willing nonhumanoid
Duration: 1 hour/level or until discharged
Saving Throw: None
Spell Resistance: No
If the nonhumanoid subject creature dies while this spell is in effect, the creature's soul does not immediately enter the realm of the dead, and it can instead attempt to enter the Material Plane as a ghost, just as if it were a type of creature (humanoid) normally capable of such.
Once the creature becomes a ghost, it can remain so until the spell duration expires, at which time it immediately passes through the Veil of Souls to the True Afterlife.
The creature may willingly do this before the duration expires.