Menu

Submission for

Comment

incomplete. lack of 3rd triggered ability. when leaves play & untapped. need to anticipate multiple target. if the tap activation ability activated multiple times before resolves.

Config

name=Merieke Ri Berit
image=http://mtgimage.com/card/merieke%20ri%20berit.jpg
value=3.992
rarity=R
type=Legendary,Creature
subtype=Human
cost={B}{U}{W}
pt=1/1
ability=SN doesn't untap during your untap step.
timing=main
requires_groovy_code
oracle=Merieke Ri Berit doesn't untap during your untap step. {T}: Gain control of target creature for as long as you control Merieke Ri Berit. When Merieke Ri Berit leaves the battlefield or becomes untapped, destroy that creature. It can't be regenerated.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Control"
    ) {

        @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,
                MagicExileTargetPicker.create(),
                this,
                "Gain control of target Creature\$ for as long as PN controls SN."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final MagicPermanent perm ->
                game.doAction(new MagicAddStaticAction(
                    event.getPermanent(), 
                    MagicStatic.ControlAsLongAsYouControlSource(
                        event.getPlayer(),
                        perm
                    )
                ));
            });
        }
    }
]
Pushed