New spell engine!

Used to calculate appropriate spell levels.
Minor fix to old code
Spell consistency