The infinitive here is 'to leave', and it is used as an 'adverb', meaning 'with the intention to leave', since it modifies a verb, it has to be an adverb.
I believe it’s C. Correct me if wrong
They are going to lose the game because the star player is sick.
The predicate adjectives are sparking and extremely.