Wow, this really requires some rules interpretations. In my circle of friends, we all make spellcraft checks (if we have ranks in it) as soon as anyone begins to cast a spell that is within reasonable range and within sight. This has become a common reaction for our spell casters, regardless if we are going to counterspell it or are just curious as to what is about to befall.
If the PC succeeds with the spellcraft check and identifies the spell, how exactly do they know who is being targeted? Obviously if the spell were fireball, anyone in the party would probably benefit from some form of fire protection, but what if it's a single target? I'm guessing that it's reasonable to assume that NPCs will be firing at the closer targets, avoiding those in melee if possible and definately not targetting PC's who have cover. I guess you could encourage your players to "guess" who is being targeted, then let the NPC's spell resolve. However, if they cast aegis in response to a scorching ray, what's to stop the NPC from making a spellcraft check to recognize that his (assuming the PC's guess was correct) target has been warded against fire? Then upon finishing the spell, the NPC would direct it to an uprotected target? Very interesting delima. Everything needs some weakness. Maybe this is what keeps the immediate effects from being overpowered.
If the PC succeeds with the spellcraft check and identifies the spell, how exactly do they know who is being targeted? Obviously if the spell were fireball, anyone in the party would probably benefit from some form of fire protection, but what if it's a single target? I'm guessing that it's reasonable to assume that NPCs will be firing at the closer targets, avoiding those in melee if possible and definately not targetting PC's who have cover. I guess you could encourage your players to "guess" who is being targeted, then let the NPC's spell resolve. However, if they cast aegis in response to a scorching ray, what's to stop the NPC from making a spellcraft check to recognize that his (assuming the PC's guess was correct) target has been warded against fire? Then upon finishing the spell, the NPC would direct it to an uprotected target? Very interesting delima. Everything needs some weakness. Maybe this is what keeps the immediate effects from being overpowered.