Detect Demon

Divination
Level: Artificer * 1, Cleric */Oracle * 1, Inquisitor * 1, Paladin * 1
Components: V, S, DF
Casting Time: 1 Standard Action
Range: 60 ft.
Area: 60 ft. cone-shaped emanation
Duration: concentration, up to 10 minutes/level (D)
Saving Throw: None, see text
Spell Resistance: no
  You sense the presence of a specific kind of evil: that of demons, their servants, and the Abyss. The amount of information revealed depends on how long you study a particular area or subject.
  1st Round: Presence or absence of creatures with the demon subtype, creatures possessed by demons, creatures under the effects of spells or spell-like abilities cast by demons, or creatures otherwise tainted by demons. Creatures tainted by demons include tieflings with demonic heritages, sorcerers with abyssal bloodlines, creatures affected by a succubus's profane gift, creatures with demonic implants, or creatures who have the Demonic Obedience feat, and those under significant demonic influence as determined by the GM. This spell does not detect creatures of chaotic evil alignment who are not demons or significantly influenced by demons. Additionally, this spell detects whether or not a portal or similar magical passage leads to the Abyss.
  2nd Round: Number of evil auras shed by creatures with the demon subtype in the area, as well as the power of the most potent evil aura present. If you are of good alignment, and the strongest demonic aura's strength is overwhelming; if the creature has Hit Dice equal to at least twice your character level, you are Stunned for 1 round and the spell ends.
  3rd Round: The power and location of each aura, and what demon lord, if any, a demon is most closely affiliated with. If an aura is outside your line of sight, you discern the direction but not its exact location. Affiliation to a demon lord is only revealed when the creature detected is a demon (not merely a creature tainted by a demon). Demons receive a Will saving throw to resist revealing what demon lord they are affiliated with. If the demon succeeds at this saving throw or is not forsworn to a demon lord, you know only that this aspect of the spell returned no information. Aside from what is detailed above, this spell otherwise functions similarly to detect evil in terms of aura power, lingering auras, overwhelming auras, and so forth.
  Aura Power: An demonic aura's power depends on the type of demonic creature or Object that you're detecting and its Hit Dice or Caster Level; see the table below. If an aura falls into more than one strength category, the spell indicates the stronger of the two.
 
SubjectNoneFaintModerateStrongOverwhelming
Aligned creature4 or lower5-1011-2526-5051 or higher
Aligned Outsider1 or lower2-45-1011 or higher
Cleric or paladin112-45-1011 or higher
Aligned item/spell25 or lower6-1011-1516-2021 or higher

  Lingering Aura: A demonic aura lingers after its original source dissipates (in the case of a spell) or is destroyed (in the case of a creature or magic item). If detect demon is cast and directed at such a location, the spell indicates an aura strength of dim (even weaker than a faint aura). How long the aura lingers at this dim level depends on its original power:
 
Original StrengthDuration of Lingering Aura
Faint1d6 rounds
Moderate1d6 minutes
Strong1d6x10 minutes
Overwhelming1d6 days

  Each round, you can turn to detect demon in a new area. The spell can penetrate barriers, but 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt blocks it.