| StreamOfTheSky |
Yeah, that bit is particularly nasty. I think some people rationalize that since you shoot as part of the spell, the ranged attack and spell casting are the "same action" and thus only provokes one AoO (though if you avoid the casting one via casting defensively, you'd still get hit with one for the ranged attack but at least it wouldn't disrupt the casting).
But RAW, yeah. Using ray spells while threatened is an incredibly bad idea.