text: Fires of Invention will look at the entire turn to see if you've cast two spells yet that turn, even if Fires of Invention wasn't on the battlefield when those spells were cast. Notably, you can't cast Fires of Invention and then cast two more spells that turn; if Fires of Invention was your second (or third, or fourth) spell that turn, you can't cast another spell at all.