Wargate

Wargate

Sorcery (CMC 3)
Search your library for a permanent card with mana value X or less, put it onto the battlefield, then shuffle.