The Trail Blazers assured themselves of finishing with no worse than the No. 5 seed in the Western Conference playoffs as they beat Golden State 119-117 in overtime in a wild shootout at the Moda Center.

LaMarcus Aldridge made a jumper with 39.6 seconds left in overtime, Damian Lillard added a free throw, and the Blazers survived as the Warriors' Andre Iguodala missed a wide-open three-point attempt with 2.9 seconds left.

Golden State’s Draymond Green made a three-pointer with 3.6 seconds left in regulation to tie the game 105-105, and when Wesley Matthews could not get a jumper to go just before the final buzzer, the Blazers headed to their seventh overtime game of the season.

The extra period into a wild shootout in which the team exchanged the lead six times. Matthews made a three with 1:11 left to give the Blazer a 116-114 lead, Klay Thompson put Golden State back up with a three with 55.8 seconds left, setting the stage for Aldridge’s winner, which improved Portland to 5-2 in OT games.

Stephen Curry scored 47 points for the Warriors, but was 1 for 4 in overtime, and he missed a shot in the lane with 26.9 seconds left as Aldridge contested the effort.

Lillard drove to the basket and was fouled with 9.0 seconds left. He made the first free throw, but missed the second. After a Golden State timeout, the Blazers swarmed Curry, but that gave Iguodala a clean look at a three that he missed.

Aldridge scored 26 points, Matthews added 24 points and Nicolas Batum had 18 points, 12 rebounds and five assists for the Blazers, who close the season against the Los Angeles Clippers on Wednesday at the Moda Center.

Portland can still get the No. 4 seed and homecourt advantage in the first round against Houston, but it would need to beat the Clippers and have Houston lose its final two games.

Golden finish: The Blazers led by as many as nine in the second quarter, but Warriors flipped the game with a 14-2 run in the final 2:14 of the second quarter. Golden State made three three-pointers, including two by Curry, and Curry closed the half by making three free throws after he was fouled by Lillard just before the buzzer.

Just like that, Golden State went into the break with a 52-44 lead as Curry exploded for 21 points in the half, including 18 in the second quarter.

Coming up: The Blazers complete their regular season schedule Wednesday with a home game against the Los Angeles Clippers, who have clinched the No. 3 seed in the West. After that, the playoffs start, with the first games scheduled Saturday.