Erratic Explosion

Oracle Text

Choose target creature or player. Reveal cards from the top of your library until you reveal a nonland card. Erratic Explosion deals damage equal to that card's converted mana cost to that creature or player. Put the revealed cards on the bottom of your library in any order.

Card Rulings

10/4/2004 If all your cards are lands, no damage is dealt.