Add some more safety checks to spellcasting