The Orlando Magic overcame a slow start to defeat the Dallas Mavericks 104-96 behind Franz Wagner's 26 points.