I found a way to forecast future spells based on some facts. So I was able to use spells without learning them before.