Bojan Bogdanovic had 21 points and five rebounds off the bench, and
George Hill had 18 points and nine assists, and
Lopez scored the go-ahead basket with 1.5 seconds remaining in the third quarter to give the Nets an 88-87 lead.
Brooklyn pulled away for good when
The Nets (29-39) used an 11-0 run in the second half to take the lead — much different from Indiana's 110-85 romp in Brooklyn on Dec. 27.
But this time, the stakes were higher. A win for the Pacers would have put them in sole possession of eighth place in the Eastern Conference.
Instead, the Nets closed the gap in a crowded race for the final playoff spot.
After Lopez scored to give the Nets the lead, Bogdanovic hit a three-pointer and another basket, and Alan Anderson made a layup to give Brooklyn a 96-87 advantage with 9:54 left.
The Pacers went on a 9-1 run of their own in the fourth.
Scola converted a three-point play to bring the Pacers within a point with 8:04 remaining, but the Nets then managed to pull away.
at Detroit 107, Chicago 91:
at Memphis 97, Portland 86:
Phoenix 117, at Houston 102: