Name:Wargate
ManaCost:X G W U
Types:Sorcery
A:SP$ ChangeZone | Origin$ Library | Destination$ Battlefield | ChangeType$ Permanent.cmcLEX | ChangeTypeDesc$ permanent card with mana value X or less | ChangeNum$ 1 | SpellDescription$ Search your library for a permanent card with mana value X or less, put it onto the battlefield, then shuffle.
SVar:X:Count$xPaid
Oracle:Search your library for a permanent card with mana value X or less, put it onto the battlefield, then shuffle.
