I was wondering if I can use the Deadeye Shot feat (Dragon Compendium) with a spell like scorching ray (ranged-touch) for example.
The feat description says that you have to ready action a ranged attack for the feat to work.
So it's not that clear to me if it counts spells with that require a ranged attack roll.
By firing just as your ally connects with a blow, you take advantage of the distraction to strike the same enemy when his guard is ruined. If you ready a ranged attack to occur when an ally strikes a particular target, and your ally succeeds, that target loses his Dexterity bonus to AC against your attack.
Best Answer
Yes
You can ready a free, move, or standard action. That action can be to cast a spell that has one of those casting times. If that spell is also a ranged attack (which can be a ranged touch attack, a type of ranged attack), you can meet the requirements of the feat Deadeye Shot (PH2 78).
The DM may require the trigger for your ready action to be very specific, however, forcing the caster to predetermine target, spell, and maybe even target's square, depending on how strictly he interprets the ready action.
The DM may balk at such a task because the feat Deadeye Shot seems to assume a ranged weapon instead of a spell, but nothing in the feat's text mandates that. A manticore could use the feat with its tail spikes just fine, for instance.
If the DM continues to resist, point him to the Weaponlike Spells section of Complete Arcane, which says, in part, that