If a spellcaster moves toward an enemy and touches them to make a spell attack, then moves away, does it provoke an opportunity attack?
Opportunity attack when moving in and out of range of a creature in the same move?