Somehow Paul Goldschmidt’s heroics are becoming almost as predictable as they are eye-popping.

On Tuesday it was a pair of leadoff homers — one in the ninth to tie the game and one in the 11th to win it — that added to Goldschmidt’s MVP candidacy and gave the Diamondbacks a 4-3 win over the Baltimore Orioles at Chase Field.

The win was the Diamondbacks’ ninth walkoff win 25th in their last at-bat and 34th when coming from behind. It was the second night in a row the Diamondbacks have won on a leadoff homer — Adam Eaton smacked his first of the season in Monday’s win — and the third time on this homestand.

That other game a 9-8 win over the Tampa Bay Rays last Wednesday the hero was — you guessed it — Goldschmidt.

“Every time he goes to the plate we’re expecting great things from him” third baseman Martin Prado said.

It’s happened so often with Goldschmidt — now with four game-ending hits in his short career including three home runs — the bubblegum bucket players are forced to wear after a game-winning hit might as well come in Goldschmidt’s hat size.

Goldschmidt’s 19 home runs when his team is within one run are the second-most in the National League.

Goldschmidt is even beginning to anticipate the game-ending celebration in which Prado doused him with water and smacked dirt on the back of his neck. The first baseman tried to avoid it with a well-placed toss of his helmet but ended up paying the price anyway.

“He actually fought back” Prado said. “I wasn’t expecting the helmet. He threw the helmet against me so that means more dirt. That’s not a good sign. More dirt.”

It was another thrilling end to a game that began ignominiously for the Diamondbacks. Baltimore starter Miguel Gonzalez held Arizona hitless through 3 2/3 innings until Goldschmidt finally recorded the first Diamondbacks hit of the game with a single to right.

After striking out on three pitches in the first inning — and throwing his helmet and bat in frustration — Goldschmidt went 3 for 4 the rest of the way.

Diamondbacks starter Randall Delgado was able to keep Arizona in the game by giving up three runs in seven innings although he surrendered a two-run home run to major-league leader Chris Davis in the fourth giving the Orioles first baseman 44 on the season.

“That was a mistake pitch to Davis” Diamondbacks manager Kirk Gibson said. “That’s not where you want to throw him but he’s done it to a lot of people.”

The Diamondbacks bullpen held up under pressure after being stuck in a rough stretch the past few games. Arizona’s relievers entered the game with an 8.18 ERA and four blown saves in their past five games but four pitchers combined to throw four scoreless innings.

Heath Bell got the win with a perfect 11th.

“Our bullpen did a great job tonight” Gibson said. “Everybody came in and had clean innings. Really not a lot going on in those.”

Despite the fireworks Arizona remained 7 1/2 back of first-place Los Angeles in the NL West and 51/2 behind the Cincinnati Reds in the wild-card race.