static public void Postfix(Spellbook __instance)
 {
     if (__instance.Blueprint.CharacterClass == Main.arcanist)
     {
         for (int i = 1; i <= __instance.MaxSpellLevel; i++)
         {
             var memorizedSlots = __instance.GetMemorizedSpellSlots(i);
             int j = 0;
             foreach (SpellSlot slot in memorizedSlots)
             {
                 int ind = slot.Index;
                 if (slot.Type == SpellSlotType.Common && ind >= ArcanistPatch_Helpers.getArcanistMemorizeSlotCnt(i, __instance))
                 {
                     slot.Available    = false;
                     slot.Spell        = null;
                     slot.LinkedSlots  = null;
                     slot.IsOpposition = false;
                 }
                 j++;
             }
         }
         __instance.Blueprint.Spontaneous = true;
     }
 }