Menu

Submission for Hunter of Eyeblights

119

Comment

tested in magarena 1.44

Config

name=Hunter of Eyeblights
url=http://magiccards.info/lw/en/119.html
image=http://magiccards.info/scans/en/lw/119.jpg
value=3.024
rarity=U
type=Creature
subtype=Elf,Assassin
cost={3}{B}{B}
pt=3/3
ability=enters effect Put a +1/+1 counter on target creature you don't control.
timing=main
requires_groovy_code

Script

def TARGET_CREATURE_WITH_COUNTER = new MagicPermanentFilterImpl() {
	public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
		return target.isCreature() && target.hasCounters();
	}
};
[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Destroy"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicTapEvent(source), new MagicPayManaCostEvent(source,"{2}{B}")
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                new MagicTargetChoice(TARGET_CREATURE_WITH_COUNTER, MagicTargetHint.Negative, "a creature with a counter on it"),
                MagicDestroyTargetPicker.Destroy,
                this,
                "Destroy target creature\$ with a counter on it."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game,new MagicPermanentAction() {
                public void doAction(final MagicPermanent permanent) {
                    game.doAction(new MagicDestroyAction(permanent));
                }
            });
        }
    }
]
Pushed