Damian Lillard scored 37 points and handed out 12 assists, and the Milwaukee Bucks wasted a 22-point second-half lead before beating the Miami Heat 106-103 in an NBA Cup game on Tuesday night.