Immanuel Quickley scored 17 of his 24 points in the second half and the Toronto Raptors held on to beat the Orlando Magic 104-102 on Sunday night.