Menu

Submission for Tethered Griffin

21

Config

name=Tethered Griffin
image=http://mtgimage.com/card/tethered%20griffin.jpg
value=2.500
rarity=R
type=Creature
subtype=Griffin
cost={W}
pt=2/3
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. When you control no enchantments, sacrifice Tethered Griffin.

Script

[
    new MagicStatic(MagicLayer.Game) {
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().controlsPermanent(MagicType.Enchantment) == false;
        }
        @Override
        public void modGame(final MagicPermanent source, final MagicGame game) {
            game.doAction(new MagicPutStateTriggerOnStackAction(new MagicEvent(
                source,
                {
                    final MagicGame G, final MagicEvent E ->
                    G.doAction(new MagicSacrificeAction(E.getPermanent()));
                },
                "Sacrifice SN."
            )));
        }
    }
]
Pushed