Menu

Submission for Primeval Force

273

Config

name=Primeval Force
image=http://mtgimage.com/card/primeval%20force.jpg
value=2.500
rarity=R
type=Creature
subtype=Elemental
cost={2}{G}{G}{G}
pt=8/8
timing=main
requires_groovy_code
oracle=When Primeval Force enters the battlefield, sacrifice it unless you sacrifice three Forests.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                new MagicMayChoice("Sacrifice three Forests?"),
                this,
                "PN may\$ sacrifice three Forests. If you don't, sacrifice SN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final MagicPermanent perm = event.getPermanent();
            if (event.isYes() && event.getPlayer().getNrOfPermanents(MagicSubType.Forest) >=3) {
                game.addEvent(new MagicSacrificePermanentEvent(perm,event.getPlayer(),MagicTargetChoice.SACRIFICE_FOREST));
		game.addEvent(new MagicSacrificePermanentEvent(perm,event.getPlayer(),MagicTargetChoice.SACRIFICE_FOREST));
		game.addEvent(new MagicSacrificePermanentEvent(perm,event.getPlayer(),MagicTargetChoice.SACRIFICE_FOREST));
            } else {
                game.doAction(new MagicSacrificeAction(perm));
            }
        }
    }
]
Pushed