Mydriatic Spontaneity

Evocation [darkness, light]
Level: Artificer * 4, Bard * 3, Sorcerer */Wizard * 4, Warlock * 4
Components: V, S
Casting Time: 1 Standard Action
Range: close (25 ft. + 5 ft./2 levels)
Target: one living creature
Duration: 1 round/level
Saving Throw: Will negates
Spell Resistance: yes
  You overstimulate the target with alternating flashes of light and shadow within its eyes, causing its pupils to rapidly dilate and contract. While under the effects of this spell, the target is racked by splitting headaches and unable to see clearly, becoming Nauseated for the spell's duration. Each round, the target's pupils randomly become dilated or contracted for 1 round. During any round that its eyes are dilated, the target is Blinded if exposed to bright light or Dazzled if exposed to normal light. During any round its eyes are contracted, the target is Blinded if exposed to Darkness or Dazzled if exposed to dim light. In addition, any creature can attempt a Stealth check to avoid detection from the target, even if the creature lacks cover or concealment.