SAN FRANCISCO -- Willy Adames dropped to the ground, his face contorted in pain, after he fouled the first pitch he saw from D-backs right-hander Zac Gallen off his left knee in the bottom of the first inning on Tuesday.

The Giants’ shortstop managed to get up and walk it off, though he drew a brief visit from manager Bob Melvin and head athletic trainer Dave Groeschner before he was cleared to step back in the box.

As it turned out, not much can keep the Giants down these days.

Adames recovered by launching the very next pitch out to left field for a three-run home run that keyed a 5-3 win for the Giants, who have won 13 of their last 16 games to pull within two games of the Mets (76-69) for the third National League Wild Card spot with 17 games left to play.

The Mets still hold

See Full Page