Dirk Nowitzki scored a season-high 22 points, Harrison Barnes had 21 and the last-place Dallas Mavericks spoiled Isaiah Thomas' strong debut with the Lakers, beating Los Angeles 130-123 on Saturday night.