Hostile spellcasters have a 10% chance to miscast when you’re in the same encounter.
If they miscast, the spell fails similar to an Armor Bending Roll.