Shadowdark has d20 rolls for spellcasting and by all accounts it’s fantastic. If you succeed the roll you cast the spell and expend no resources. If you fail you can’t cast the spell for the rest of the day. I don’t believe for a second that it’s what the OP in this post was playing though.