Menu

Submission for Rogue Elephant

81

Comment

same groovy script as "plant elemental", but can't decide which one to be set as reference. :)

Config

name=Rogue Elephant
image=http://mtgimage.com/card/rogue%20elephant.jpg
value=4.282
rarity=C
type=Creature
subtype=Elephant
cost={G}
pt=3/3
timing=main
requires_groovy_code
oracle=When Rogue Elephant enters the battlefield, sacrifice it unless you sacrifice a Forest.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice(MagicTargetChoice.SACRIFICE_FOREST),
                MagicSacrificeTargetPicker.create(),
                this,
                "PN may\$ sacrifice a Forest\$. If you don't, sacrifice SN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPermanent permanent = event.getPermanent();
            if (event.isYes()) {
                event.processTargetPermanent(game, {
                    final MagicPermanent target ->
                    game.doAction(new MagicSacrificeAction(target));
                });
            } else {
                game.doAction(new MagicSacrificeAction(permanent));
            }
        }
    }
]
Pushed