Menu

Submission for Furnace Brood

84

Config

name=Furnace Brood
image=http://mtgimage.com/card/furnace%20brood.jpg
value=2.500
rarity=C
type=Creature
subtype=Elemental
cost={3}{R}
pt=3/3
timing=main
requires_groovy_code
oracle={R}: 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 MagicPayManaCostEvent(source,"{R}")];
        }

		@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