Menu

Submission for Llanowar Druid

75

Config

name=Llanowar Druid
url=http://magiccards.info/wl/en/75.html
image=http://magiccards.info/scans/en/wl/75.jpg
value=4.088
rarity=C
type=Creature
subtype=Elf,Druid
cost={1}{G}
pt=1/2
timing=main
requires_groovy_code

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Tapping),
        "Untap"
    ) {

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "Untap all forest."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            
            final Collection<MagicPermanent> targets = game.filterPermanents(
                    event.getPlayer(),
                    MagicTargetFilter.TARGET_FOREST);
            for (final MagicPermanent target : targets) {
                game.doAction(new MagicUntapAction(target));
            }
        }
    }
]
Pushed