Changed how cost was calculated

Cost is now calculated after a spell's attributes are finalized, in the
function that calculates the spell's targetNumber.