Bryan Reynolds hit a three-run homer and an RBI double Sunday to help the Pittsburgh Pirates edge the visiting MilwaukeeBrewers 6-5.
Kevin Newman had an RBI single and Adam Frazier had three hits to give him 18 in July for Pittsburgh, which has won five of seven.
Jesus Aguilar hit a two-run homer and a solo shot, and Keston Hiura added two-run homer for the Brewers, who have lost five of six.
Pittsburgh starter Joe Musgrove pitched six-plus innings, giving up three runs on five hits, with five strikeouts and a walk.
Francisco Liriano (3-1) allowed one base runner in an inning of work. Felipe Vazquez got the final four outs for his 20th save.
Milwaukee starter Chase Anderson went four innings, giving up two runs and five hits, with four strikeouts and a walk.
The Brewers played without shortstop Orlando Arcia, who was carted off the field Saturday after colliding with Hiura, although Arcia said he was OK. Also out was right fielder Christian Yelich, who has pulled out of the Home Run Derby because of a back problem.
Pittsburgh took a 2-0 lead in the second. With one out, Colin Moran hit his third career triple. Newman drove him in with a single. Jacob Stallings singled to right, moving Newman to third. Musgrove's safety squeeze bunt scored Newman for Musgrove's first career RBI.
Aguilar led off the fifth with a liner that cleared the wall in left for his seventh homer, closing it to 2-1.
Frazier and Reynolds started the bottom of the fifth with back-to-back doubles to make it 3-1.
Musgrove, whose previous start was truncated at three innings because of rain, continued this time after a 40-minute rain delay after the fifth.
In the seventh, Musgrove walked Eric Thames, and Aguilar followed with his second homer of the day, a shot to center, for a 3-3 tie.
In the bottom of the seventh against Junior Guerra (3-2), pinch-hitter Kevin Kramer walked, Frazier singled and Reynolds lofted his seventh homer to right for a 6-3 lead.
Hiura cut into that with his seventh homer in the eighth after Mike Moustakas walked, making it 6-5.
Arcia fine after collision'
Brewers shortstop Orlando Arcia avoided a serious left shoulder injury after being involved in a scary collision in Saturday's game against the Pittsburgh Pirates.
Arcia was held out of the starting lineup Sunday despite assuring everyone that he was feeling fine. He was carted off Saturday after the collision with second baseman Keston Hiura.
"His head went right into my shoulder," Arcia told reporters through a translator. "That was the main thing that was bothering me at the moment. Right away it hurt, but I kind of felt like it wasn't as bad. It was more the shock of it.
"They did all the tests afterward and everything came out negative. Everything feels good right now."
Milwaukee promoted infielder Mauricio Dubon from Triple-A San Antonio for the day to make sure the team wasn't short-handed on the final day prior to the All-Star break.
Star right fielder Christian Yelich wasn't in the lineup Sunday either due to back soreness and also pulled out of Monday's Home Run Derby.
As for Arcia, he is expected to be the starter when the Brewers resume play against the San Francisco Giants on Friday.
Milwaukee manager Craig Counsell was pleased to see Arcia in good spirits on Sunday. In fact, Arcia was used as a pinch hitter in the fifth inning and lined out to center field.
"He reported this morning doing really well," Counsell told reporters. "So, we're in good shape. He's going to be OK. It's not going to be an injured list placement ... It's a good thing. It was a scary collision. It ended up looking worse than the guys came out of it, so we're fortunate there."
Arcia is batting .239 with 12 homers and 37 RBIs in 87 games this season.
Dubon was batting .307 with 14 homers and 42 RBIs in 83 games at San Antonio.
The Brewers optioned right-hander Burch Smith to San Antonio to open up the roster spot. Smith is 0-1 with a 7.04 ERA in four appearances for Milwaukee.