Ashe's Transformative Counterspell (3.5e Spell)

You may only use this spell against a spell cast in its area which you successfully identify using the Spellcraft skill. When you use this spell, make a caster level check against a DC of 9 + the spell's level x 2. If you succeed, the spell is countered, having no effect. Additionally, you seize its energies, you can restore one used prepared spell, or one used spell slot, or one use of a limited-use spell-like ability. You may only restore a spell, slot, or ability use that has a level equal to or lower than the lesser of the countered spell's level or the level of the slot that you cast this spell from.

If you fail the caster level check, the spell works as normal.