Menu

Submission for Endless Scream

132

Config

name=Endless Scream
image=http://mtgimage.com/card/endless%20scream.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={X}{B}
timing=aura
enchant=pump,pos creature
requires_groovy_code
oracle=Enchant creature. Endless Scream enters the battlefield with X scream counters on it. Enchanted creature gets +1/+0 for each scream counter on Endless Scream.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
            game.doAction(new MagicChangeCountersAction(permanent,MagicCounterType.Scream,payedCost.getX()));
            return MagicEvent.NONE;
        }
    },
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
            final int amt = source.getCounters(MagicCounterType.Scream)
            pt.add(amt, 0);
        }
        @Override
        public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return MagicStatic.acceptLinked(game, source, target);
        }
    }
]
Pushed