(AP) — The Minnesota Timberwolves were able to end the NBA’s longest-running playoff drought by outlasting the Denver Nuggets in a win-and-in matchup for a postseason berth.

Jimmy Butler scored 31 points and Karl-Anthony Towns had 26 with 14 rebounds as the Wolves took a 112-106 overtime decision against the Nuggets. Minnesota blew an eight-point lead in the final 4 ½ minutes of regulation and trailed by one in OT before closing on a 9-2 run.

Denver lost despite 35 points and 10 boards from Nikola Jokic (NEE’-koh-lah YOH’-kich).

The Timberwolves will enter their first playoff appearance in 14 years as the No. 8 seed in the Western Conference and will face the Houston Rockets.