Enchantment
When ~this~ is put into a graveyard from the battlefield, you may Pay 1 life. If you do, ~this~ deals 7 damage to target creature
When ~this~ is put into a graveyard from the battlefield, you may pay X, where X is the number of cards in your hand. If you do, destroy target artifact
At the beginning of each opponent's upkeep, you reveal cards from the top of your library until you reveal a sorcery card, put that card into hand, and shuffle the rest into your library.

Converted mana cost: 7

AlexChurchill/TypeFourEnchantmentGenerator