So their Pact counters that spell, and your Pact is countered on resolution due to not having a legal target, and you don't have to pay the cost.