Menu

Submission for Conch Horn

168

Config

name=Conch Horn
image=http://mtgimage.com/card/conch%20horn.jpg
value=2.500
rarity=R
type=Artifact
cost={2}
timing=main
requires_groovy_code
oracle={1}, {T}, Sacrifice Conch Horn: Draw two cards, then put a card from your hand on top of your library.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Draw"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source,"{1}"),
		new MagicTapEvent(source),
                new MagicSacrificeEvent(source)
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "PN draws two cards, then puts a card from his hand on top of his library."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicDrawAction(event.getPlayer(),2));
	    game.addEvent(new MagicReturnCardEvent(event.getSource(), event.getPlayer()));
        }
    }
]
Pushed