Menu

Submission for Zur the Enchanter

135

Comment

need filter "ENCHANTMENT_CARD_COST_3_FROM_LIBRARY" to test.

Config

name=Zur the Enchanter
url=http://magiccards.info/csp/en/135.html
image=http://www.kardkastle.com/images/products/alteredprints/zurtheenchanter3.jpg
value=4.186
rarity=R
type=Legendary,Creature
subtype=Human,Wizard
cost={1}{W}{U}{B}
pt=1/4
ability=flying
timing=main
requires_groovy_code

Script

def EventAction = {
    final MagicGame game, final MagicEvent event ->
    final MagicEvent search = new MagicSearchOntoBattlefieldEvent(
        event,
        new MagicMayChoice(
            "Search for an enchantment card?",
            MagicTargetChoice.ENCHANTMENT_CARD_COST_3_FROM_LIBRARY
        ),
        MagicPlayMod.UNTAPPED
    );
    game.addEvent(search);
};

def Event = {
    final MagicPermanent permanent ->
    return new MagicEvent(
        permanent,
        EventAction,
        "PN may search his or her library for an enchantment card with converted mana cost 3 or less and put it onto the battlefield, then shuffle his or her library."
    );
};

[
    new MagicWhenSelfAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return Event(permanent);
        }
    }      
]
Pushed