Menu

Submission for Synod Centurion

53

Config

name=Synod Centurion
image=http://mtgimage.com/card/synod%20centurion.jpg
value=2.500
rarity=U
type=Artifact,Creature
subtype=Construct
cost={4}
pt=4/4
timing=main
requires_groovy_code
oracle=When you control no other artifacts, sacrifice Synod Centurion.

Script

[
    new MagicStatic(MagicLayer.Game) {
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().getNrOfPermanents(MagicType.Artifact) <= 1;
        }
        @Override
        public void modGame(final MagicPermanent source, final MagicGame game) {
            game.doAction(new MagicPutStateTriggerOnStackAction(
                MagicRuleEventAction.create(
                    source,
                    "Sacrifice SN."
                )
            ));
        }
    }
]
Pushed