Example.
There is a unit with 25% magic protection, and there is a Warlock with the "Skilled Unstoppable Magic" ability (50%). The ability "consumes" half of the magic protection, resulting in 87.5% of the damage passing through the unit (25% divided by 2 = 12.5%), not 75%. If resistance is triggered, 50% of the damage will pass through the unit.