First of all, Prot. From Arrows only works on non-magical arrows. Magic Weaponed or GMWed arrows are bypassed.
Second, creatures with Spell Resistance can cast spells on themselves. Else how could Demons and Devils have spell-like abilities that allow them to teleport, and thus thus?
Second, creatures with Spell Resistance can cast spells on themselves. Else how could Demons and Devils have spell-like abilities that allow them to teleport, and thus thus?