RPG mechanics exist to give structure and consistency to the game world, true, but at the end of the day, you’re fighting dragons with algebra and random number generators.
I’m pretty sure there is such a mechanic (opposed test versus twice force, net hits reduces force of spell or damages attacker) though for the life of me I cannot remember where I saw it. Maybe it’s a relic of a former edition though