Menu

Submission for Edge of Autumn

25

Comment

Couldn't playtest this time, please check carefully that this one is OK. Thanks.

Config

name=Edge of Autumn
image=http://magiccards.info/scans/en/ddg/25.jpg
value=2.500
rarity=C
type=Sorcery
cost={1}{G}
ability=Cycling—Sacrifice a land.
timing=main
requires_groovy_code
oracle=If you control four or fewer lands, search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.\nCycling—Sacrifice a land.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return cardOnStack.getController().getNrOfPermanents(MagicType.Land) <= 4 ?
                new MagicEvent(
                    cardOnStack,
                    this,
                    "Search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library."
                ):
                MagicEvent.NONE;
            }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.addEvent(MagicRuleEventAction.create(
                "Search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library.").getEvent(event.getSource())
            );
        }
    }
]
Pushed