Law was extremely nerfed, dude was saving asses all along, even fought Fujitora and Doflamingo in a row, wasting a lot of energy and creating some island size rooms
One single "Gamma Knife" was enough to put Doflamingo out for a really good amount of time, but thanks to Doflamingo being smart and a good villain, he used everything he had to favor himself, his crew helped him and he threatned the weak, making Luffy and Law waste their times with them instead of focusing on defeating their enemies right away, so that way Doflamingo healed himself up.
Did you forgot Luffy wasting time with fodder Bellamy for no reason?
I wonder why people wank Zoro for pushing Fujitora 1 feet away then getting overwhelmed, but downplay Law for fighting Fujitora, Doflamingo and saving peoples asses (including Luffy's dumb ass) in the same arc
On reality, Doflamingo got matched by base Luffy right out of the timeskip, and destroyed by his first Gear 4 ever.