Menu

Submission for Roon of the Hidden Realm

206

Config

 name=Roon of the Hidden Realm
image=http://mtgimage.com/card/roon%20of%20the%20hidden%20realm.jpg
value=2.500
rarity=M
type=Legendary,Creature
subtype=Rhino,Soldier
cost={2}{G}{W}{U}
pt=4/4
ability=Vigilance; trample
timing=main
requires_groovy_code
oracle=Vigilance, trample. {2}, {T}: Exile another target creature. Return that card to the battlefield under its owner's control at the beginning of the next end step.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Exile"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
			new MagicPayManaCostEvent(source,"{2}"),
			new MagicTapEvent(source)
		   ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
	    final MagicTargetChoice targetChoice = new MagicTargetChoice(
                new MagicOtherPermanentTargetFilter(
                    MagicTargetFilterFactory.CREATURE,
                    source
                ),
                "another target creature"
            );   
            return new MagicEvent(
                source,
                targetChoice,
                MagicExileTargetPicker.create(),
                this,
                "Exile target creature\$. Return that card to the battlefield under its owner's control at the beginning of the next end step."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicExileUntilEndOfTurnAction(it));
            });
        }
    }
]
Pushed