It makes no sense that Luffy could "eat" shadows. Neither Luffy nor the surviving pirates on Thriller Bark have the Shadow-Shadow power. So how could they "bind" shadows onto people? This wasn't like using Crocodile's weakness to water at all.
Lucky is putting it mildly. It was deus ex machina.