Dirk Nowitzki scored 27 points, and the Dallas Mavericks avoided their longest home losing streak in 14 years with a 110-97 victory over the Los Angeles Lakers on Tuesday night.