Umm unless your Haki is strong enough to resist magma..because Haki is defensive coating.
Zoro's defensive coating is FAR stronger than Luffy's hence why Zoro can fully resist mountain level explosion (An explosion can burn hotter than magma) where as Luffy nearly dies from a shark bite..feels pain against Ulti's head butt and barely blocks Wind Scythe (While feeling pain).
What Law did seems similar to what Doffy did and Doq Q has no haki feats to begin with.
That's certainly not some crazy Haki
Zoro's defensive coating is FAR stronger than Luffy's hence why Zoro can fully resist mountain level explosion (An explosion can burn hotter than magma) where as Luffy nearly dies from a shark bite..feels pain against Ulti's head butt and barely blocks Wind Scythe (While feeling pain).
What Law did seems similar to what Doffy did and Doq Q has no haki feats to begin with.
That's certainly not some crazy Haki
And luffys haki being better is a fact. Zoro was in awe when he saw luffy punch Kaido in the face in the beginning of roof piece.
Also, What Law did was, Negate a physical change brought about by a devil fruit power. That's not anywhere close to what ever it is that doffy did that you're saying. Doc Q's haki isn't the question here. Cause he AFFECTED law with a disease. Law used his own Haki prowess to negate that.