But real quick. If you’re within reach of a dragon and move closer to hit him, do you invoke an attack of opportunity? No, unless an ability says otherwise you only risk an opportunity attack when leaving a creature's reach
— Mike Mearls (@mikemearls) September 3, 2017