Brandon Knight had a career-high 31 points, including five 3-pointers, and Greg Monroe scored 17 points and the Detroit Pistons ended a two-game losing streak with a 104-102 win over the Orlando Magic on Sunday.
The Magic had a chance to tie the game in the closing seconds after a missed free throw, but missed three putback attempts as the final horn sounded.
Orlando's J.J. Redick tied a career high with 31 points and set a career high with eight 3-pointers.
Jameer Nelson had 18 points and eight assists, and Glen Davis added 17 points and 12 rebounds.
The Magic have lost five straight games, including 10 of 11 at home.
The lead changed hands several times throughout the period.
The Pistons led 93-89 on a 3-pointer from the wing by Knight with just over six minutes to play. It would grow to five points a few possessions later on a floater by Will Bynum.
The Magic found a way to rally. E'Twaun Moore connected on a deep 3 to trim Detroit's lead to 95-93. A Nikola Vucevic dunk ti...