Fixed bugs with casting.

Casting now drains charges, charging now works properly, spells fixed.