RavenMUD doesn't seem to have a function similar to this. The purpose is to have basic validation for spells that will be cast by a mob and to decrease the mob's mana. These are not done in 'cast_spell' function alone (although it also has some necessary checks).

Note that the "pseudo" spell success roll is...well...pseudo :D.