Menu

Submission for Daily Regimen

18

Config

name=Daily Regimen
image=http://mtgimage.com/card/daily%20regimen.jpg
value=2.500
rarity=U
type=Enchantment
subtype=Aura
cost={W}
timing=aura
enchant=pump,pos creature
requires_groovy_code
oracle=Enchant creature. {1}{W}: Put a +1/+1 counter on enchanted creature.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Counter"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source,"{1}{W}")
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                source.getEnchantedPermanent(),
                this,
                "PN puts a +1/+1 counter on RN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeCountersAction(event.getRefPermanent(),MagicCounterType.PlusOne,1));
        }
    }
]
Pushed