Updated spells script to accommodate spellbook rework