Menu

Submission for

Comment

Adapted from Elvish Hunter, changing just the ability cost.

Config

 name=Barl's Cage
image=http://mtgimage.com/card/barl%27s%20cage.jpg
value=2.500
rarity=R
type=Artifact
cost={4}
timing=main
requires_groovy_code
oracle={3}: Target creature doesn't untap during its controller's next untap step.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Tapping),
        "Paralyze"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source, "{3}")
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_CREATURE,
                new MagicNoCombatTargetPicker(true,true,false),
                this,
                "Target creature\$ doesn't untap during its controller's next untap step."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(MagicChangeStateAction.Set(
                    it,
                    MagicPermanentState.DoesNotUntapDuringNext
                ));
            });
        }
    }
]
Pushed