Fix history looping. Fix creating new spells without a damage type