Menu

Submission for Orcish Healer

208

Config

name=Orcish Healer
image=http://mtgimage.com/card/orcish%20healer.jpg
value=2.500
rarity=U
type=Creature
subtype=Orc,Cleric
cost={R}{R}
pt=1/1
ability={B}{B}{R}, {T}: Regenerate target black or green creature.;\
        {R}{G}{G}, {T}: Regenerate target black or green creature.
timing=main
requires_groovy_code
oracle={R}{R}, {T}: Target creature can't be regenerated this turn. {B}{B}{R}, {T}: Regenerate target black or green creature. {R}{G}{G}, {T}: Regenerate target black or green creature.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "NoRegen"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
		return [new MagicTapEvent(source),
			new MagicPayManaCostEvent(source,"{R}{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