LeBron James scored a season-high 42 points and the Miami Heat tuned up for a showdown with Oklahoma City by beating the Dallas Mavericks 117-106 Tuesday night.