My level 4 storm sorcerer has the shield spell. Imagine I am within melee range of three enemies. I move out of reach of all three provoking three Attacks of Opportunity (AoO). The first attack hits but I use my reaction to cast shield to avoid it. Using my bonus action, I use Tempestuous Magic immediately after casting Shield to fly 10ft away.
Would this:
a) Allow me to avoid the last two AoO because TM prevents you from provoking AoO or would that not apply because the previous two AoO have already been triggered/"provoked?"
Tempestuous Magic
Starting at 1st level, you can use a bonus action on your turn to cause whirling gusts of elemental air to briefly surround you, immediately before or after you cast a spell of 1st level or higher. Doing so allows you to fly up to 10 feet without provoking opportunity attacks.
b) Allow me to avoid the last two AoO because by flying 10ft away I am no longer a valid target for the remaining two AoO or would the attacks still happen because of the following?
To make the opportunity attack, you use your reaction to make one melee attack against the provoking creature. The attack occurs right before the creature leaves your reach.
c) Something else entirely.
If you are wondering why not just cast a 1st level spell before moving and fly away without provoking AoO I can think of some reasons. Imagine you either don't have misty step or are out of lvl 2 spell slots. If I think (or know) the enemies will catch up on the next turn this would be the most optimal way to utilize my 1st lvl spell slots to keep me alive (if it works how I hope it does)