Menu

Submission for Hurr Jackal

221

Config

name=Hurr Jackal
image=http://mtgimage.com/card/hurr%20jackal.jpg
value=2.500
rarity=C
type=Creature
subtype=Hound
cost={R}
pt=1/1
timing=main
requires_groovy_code
oracle={T}: Target creature can't be regenerated this turn.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "NoRegen"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
		return [new MagicTapEvent(source)];
        }

		@Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_CREATURE,
                MagicDestroyTargetPicker.DestroyNoRegen,
                this,
                "Target creature\$ can't be regenerated this turn. "
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(MagicChangeStateAction.Set(
                    it,
                    MagicPermanentState.CannotBeRegenerated
                ));
            });
        }
    }
]
Pushed