When a creature with spell resistance is affected by a spell, the number of spell points invested in the spell is reduced by an amount equal to the creatures spell resistance, with corresponding consequences to the power of the spell.
I've done something similar.