Dheryth's Spell Analysis
(Divination)

Range:  20 feet
Components:  V, S, M
Duration:  Instantaneous
Casting Time:  1 turn
Area of Effect:  One object or 12-foot cube
Saving Throw:  None

When spell analysis is cast on an object or area, it lets the caster determine what other spells are operational there. In order to correctly identify each spell that is in effect in the area being analyzed, the caster must make a successful Intelligence check. Thus, if there were three spells in effect in the area in question, the wizard would have to make three Intelligence checks. If he were to make two of the three rolls, he would learn about two of the three spells. The Intelligence checks are modified as follows:

Two to four different spells	+1 to roll
More than five different spells	+2 to roll
Non-detection type spell	+3 to roll

"Different spells" does not mean multiple spells of the same type. For instance, seventeen magic mouth spells cast on a single statue would require 17 Intelligence checks but none would be penalized. But if four magic mouths and a permanent illusion were cast on the statue, the wizard would make five Intelligence checks, each at a +1 penalty (only 2 different spells).
"Non-detection type" spell indicates any spell whose primary function is to make other divination spells work incorrectly - non-detection, mind blank, screen, etc. This does not include generic abjuration spells like protection from evil or globe of invulnerability. Multiple non-detection spells do not have cumulative penalties: each +3 penalty applies only to the roll for analysis of the non-detection type spell.
If a spell is not successfully analyzed, then the caster knows that the spell is there but neither learns its name nor its properties. If the caster makes the Intelligence check but has never encountered the detected spell before, then he learns its name and its basic effects.
Dheryth's spell analysis will also reveal some basic information about "triggered" spells in the area. This is limited to simple triggers only - some examples are listed below:

Simple Triggers	Complex Triggers
Opening the book	When an elf opens the book
Entering the door	Entering the door without saying "ay"

If the trigger is complex, the caster of analysis discovers only the simplified portion of it. Furthermore, if the spell is a simple timed one (delayed blast fireball, for example) then the caster learns only that it is "about to go off" or "far from going off" or something like this, DM's discretion.
Finally, for spells that have several versions (symbol or glyph of warding, for example), the caster of analysis may attempt another Intelligence check at an additional penalty of +1 to determine exactly which version is active.
The material components of this spell are a tortoise shell and a book, both of which are consumed in the casting.

