The outline is:
1. You disable the spell for all players (provided that the spell(s) was already inside the Spell Book - so when you disable it, it won't appear).
2. When Player buys spell, enable it (for that Player only and perform a check if level of ability == 0, else, increase level of that spell)