Menu

Submission for Greenseeker

198

Comment

tested in magarena 1.44

Config

name=Greenseeker
url=http://magiccards.info/ts/en/198.html
image=http://magiccards.info/scans/en/ts/198.jpg
value=3.641
rarity=C
type=Creature
subtype=Elf,Spellshaper
cost={G}
pt=1/1
timing=main
requires_groovy_code

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Land),
        "Land"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
				new MagicTapEvent(source), 
                new MagicPayManaCostEvent(source, "{G}"),
				new MagicDiscardEvent(source)
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "PN searches his or her library for a basic land card, reveal it, put it into his or her hand, and shuffle his or her library."
            );
      }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.addEvent(new MagicSearchIntoHandEvent(
                event,
                MagicTargetChoice.BASIC_LAND_CARD_FROM_LIBRARY
            ));
        }
    }
]
Pushed