Menu

Submission for Ivy Lane Denizen

125

Comment

tested in magarena 1.44

Config

name=Ivy Lane Denizen
url=http://magiccards.info/gtc/en/125.html
image=http://magiccards.info/scans/en/gtc/125.jpg
value=3.17
rarity=C
type=Creature
subtype=Elf,Warrior
cost={3}{G}
pt=2/3
timing=main
requires_groovy_code

Script

[
    new MagicWhenOtherComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent otherPermanent) {
            
            return (otherPermanent != permanent &&
                    otherPermanent.isCreature() &&
                    otherPermanent.isFriend(permanent) &&
                    otherPermanent.hasColor(MagicColor.Green)) ?
                new MagicEvent(
                    permanent,
                    MagicTargetChoice.Positive("target creature"),
                    this,
					"Put a +1/+1 counter on target creature\$."
                ) :
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game,new MagicPermanentAction() {
				public void doAction(final MagicPermanent target) {
					game.doAction(new MagicChangeCountersAction(
						target,
						MagicCounterType.PlusOne,
						1,
						true
					));
				}
            });
        }
    }
]
Pushed