Menu

Submission for

Comment

tested in magarena 1.43

Config

name=Beckon Apparition
url=http://magiccards.info/gtc/en/212.html
image=http://magiccards.info/scans/en/gtc/212.jpg
value=3.988
rarity=C
type=Instant
cost={W/B}
timing=removal
requires_groovy_code

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_CARD_FROM_ALL_GRAVEYARDS,
                MagicGraveyardTargetPicker.ExileOpp,
                this,
                "Exile target card\$ from a graveyard. " +
                "PN puts a 1/1 white and black Spirit creature token with flying onto the battlefield."
            );
        }
		
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            
			event.processTargetCard(game,new MagicCardAction() {
                public void doAction(final MagicCard card) {
                    game.doAction(new MagicRemoveCardAction(
                        card,
                        MagicLocationType.Graveyard
                    ));
                    game.doAction(new MagicMoveCardAction(
                        card,
                        MagicLocationType.Graveyard,
                        MagicLocationType.Exile
                    ));
					game.doAction(new MagicPlayTokenAction(
                        event.getPlayer(),
                        TokenCardDefinitions.get("1/1 white and black Spirit creature token with flying")
                    ));
                }
            });
        }
    }
]
Pushed