SRD:Nightmare (Spell)

You send a hideous and unsettling phantasmal vision to a specific creature that you name or otherwise specifically designate.

The nightmare prevents restful sleep and causes 1d10 points of damage. The nightmare leaves the subject fatigued and unable to regain arcane spells for the next 24 hours.

The difficulty of the save depends on how well you know the subject and what sort of physical connection (if any) you have to that creature.

Dispel evil cast on the subject while you are casting the spell dispels the nightmare and causes you to be stunned for 10 minutes per caster level of the dispel evil.

If the recipient is awake when the spell begins, you can choose to cease casting (ending the spell) or to enter a trance until the recipient goes to sleep, whereupon you become alert again and complete the casting. If you are disturbed during the trance, you must succeed on a Concentration check as if you were in the midst of casting a spell or the spell ends.

If you choose to enter a trance, you are not aware of your surroundings or the activities around you while in the trance.

You are defenseless, both physically and mentally, while in the trance. (You always fail any saving throw, for example.)

Creatures who don’t sleep (such as elves, but not half-elves) or dream are immune to this spell.