Menu

Submission for

Comment

tested in magarena 1.43

Config

name=Legacy Weapon
url=http://magiccards.info/10e/en/330.html
image=http://magiccards.info/scans/en/ap/137.jpg
value=4.149
rarity=R
type=Legendary,Artifact
cost={7}
ability=graveyard to library
timing=artifact
requires_groovy_code

Script

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

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source, "{W}{U}{B}{R}{G}")
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_PERMANENT,
				MagicExileTargetPicker.create(),
                this,
                "Exile target permanent."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game,new MagicPermanentAction() {
                public void doAction(final MagicPermanent creature) {
                    game.doAction(new MagicRemoveFromPlayAction(creature,MagicLocationType.Exile));
                }
            });
        }
    }
]
Pushed