W hen a hostile creature’s movement provokes an
opportunity attack from you, you can use your reac-
tion to cast a spell at the creature, rather than making
an opportunity attack. The spell must have a casting
time of 1 action and must target only that creature.