Add spell_violates_edict function to check whether a spell violates the current list of edicts.