I have a problem to understand how this spell works.
The spell description says:
Reroll the saving throw and use the better result. You then become temporarily immune for 10 minutes.
But there is no duration assigned. So would I have to cast the spell after I rolled a bad saving throw? Or do I have to cast this spell beforehand so that it triggers. But how many hours before do I have to cast the spell?