Menu

Submission for Stag Beetle

285

Config

name=Stag Beetle
image=http://mtgimage.com/card/stag%20beetle.jpg
value=2.500
rarity=R
type=Creature
subtype=Insect
cost={3}{G}{G}
pt=0/0
timing=main
requires_groovy_code
oracle=Stag Beetle enters the battlefield with X +1/+1 counters on it, where X is the number of other creatures on the battlefield.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
            final int X = game.getNrOfPermanents(MagicType.Creature) - 1;
            game.doAction(new MagicChangeCountersAction(permanent,MagicCounterType.PlusOne,X));
            return MagicEvent.NONE;
        }
    }
]
Pushed