Quick question as this confused me on Friday???

I was playing a 1k game and my fire wizard miscast on her first turn!!!

She then rolled a 10 and lost a level, therefore no more magic!!!

Turn 2 I used her dispel scroll, is this legal as she no longer is a spell caster???
Thoughts please
