Let's say that there is a Magician Delphox with Power Herb against a Swellow with Flame Orb. On the first turn, Swellow uses Protect and Delphox uses Solar Beam. The Power Herb is consumed, but Solar Beam doesn't work because Swellow used Protect.
Will Delphox's Magician then take Swellow's Flame Orb?