Menu

Submission for Myr Landshaper

131

Config

name=Myr Landshaper
image=http://mtgimage.com/card/myr%20landshaper.jpg
value=2.500
rarity=C
type=Artifact,Creature
subtype=Myr
cost={3}
pt=1/1
timing=main
requires_groovy_code
oracle={T}: Target land becomes an artifact in addition to its other types until end of turn.

Script

def ST = new MagicStatic(MagicLayer.Type, MagicStatic.UntilEOT) {
    @Override
    public int getTypeFlags(final MagicPermanent permanent,final int flags) {
        return flags|MagicType.Artifact.getMask();
    }
};

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Artifact"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [new MagicTapEvent(source)];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.TARGET_LAND,
                this,
                "Target land\$ becomes an artifact in addition to its other types until end of turn."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicAddStaticAction(it, ST));
            });
        }
    }
]
Pushed