Menu

Submission for Standstill

102

Config

name=Standstill
image=http://mtgimage.com/card/standstill.jpg
value=2.500
rarity=U
type=Enchantment
cost={1}{U}
timing=enchantment
requires_groovy_code
oracle=When a player casts a spell, sacrifice Standstill. If you do, each of that player's opponents draws three cards.

Script

[
    new MagicWhenOtherSpellIsCastTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack cardOnStack) {
            return new MagicEvent(
                permanent,
                cardOnStack,
                this,
                "When a player casts a spell, sacrifice SN. If you do, each of that player's opponents draws three cards."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
		final MagicEvent sac = new MagicSacrificeEvent(event.getPermanent());
		game.addEvent(sac);
		if (sac.isSatisfied()) {
                game.doAction(new MagicDrawAction(event.getRefCardOnStack().getOpponent(),3));
		}
        }
    }
]
Pushed