Menu

Submission for Viridian Lorebearers

99

Config

name=Viridian Lorebearers
image=http://mtgimage.com/card/viridian%20lorebearers.jpg
value=2.500
rarity=U
type=Creature
subtype=Elf,Shaman
cost={3}{G}
pt=3/3
timing=main
requires_groovy_code
oracle={3}{G}, {T}: Target creature gets +X/+X until end of turn, where X is the number of artifacts your opponents control.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Pump"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
		new MagicPayManaCostEvent(source,"{3}{G}"),
                new MagicTapEvent(source)
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.POS_TARGET_CREATURE,
                MagicPumpTargetPicker.create(),
                this,
                "Target creature\$ gets +X/+X until end of turn, where X is the number of artifacts your opponents control."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final int X = event.getPlayer().getOpponent().getNrOfPermanents(MagicType.Artifact);
                game.doAction(new MagicChangeTurnPTAction(it, +X, +X));
            });
        }
    }
]
Pushed