Inaccurate?

Distracting Ray

(Spell Compendium, p. 69)

Abjuration
Level: Bard 2, Sorcerer 2, Wizard 2,
Components: V, S,
Casting Time: 1 standard action
Range: Close (25 ft. + 5 ft./2 levels)
Effect: Ray
Duration: Instantaneous
Saving Throw: None
Spell Resistance: No

You blast a nearby creature with a multicolored ray. The ray explodes on contact to form a dizzying array of bizarre swirling and flashing lights around the targeted creature.

You must succeed on a ranged touch attack with the ray to strike a target. This ray attempts to undo magic as it is being cast. Used in the same manner as a counterspell (as a readied action), the ray interferes with the manipulation of divine or arcane magic by dazzling the target. If the ray successfully strikes a spellcaster, and that spellcaster is in the process of casting a spell, then the target spellcaster must make a Concentration check to avoid losing the spell. The DC of the Concentration check is equal to 17 + the level of the spell the target is casting.