Inaccurate?

Stun Ray

(Spell Compendium, p. 211)

Conjuration (Creation) [Electricity]
Level: Sorcerer 7, Wizard 7,
Components: V, S, M,
Casting Time: 1 standard action
Range: Close (25 ft. + 5 ft./2 levels)
Effect: Ray
Duration: 1d4+1 rounds; see text
Saving Throw: Fortitude partial; see text
Spell Resistance: Yes

A quick jolt of electricity darts from your raised hand. The slight smell of ozone lingers afterward.

You blast an enemy with a scintillating ray of electricity. You must succeed on a ranged touch attack with the ray to strike a target. The target is stunned for 1d4+1 rounds by the ray of electricity. If the subject makes a successful Fortitude save, it is stunned for only 1 round. Creatures that have immunity to electricity are not affected by this spell.

Material Component: A coiled copper wire.