Erratic Explosion

Oracle Text

Choose any target. 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 permanent 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.