Menu

Submission for Barbarian Outcast

92

Config

name=Barbarian Outcast
image=http://mtgimage.com/card/barbarian%20outcast.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Barbarian,Beast
cost={1}{R}
pt=2/2
timing=main
requires_groovy_code
oracle=When you control no Swamps, sacrifice Barbarian Outcast.

Script

[
    new MagicStatic(MagicLayer.Game) {
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().controlsPermanent(MagicSubType.Swamp) == 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