Menu

Submission for Civic Guildmage

211

Comment

tested in magarena 1.43

Config

name=Civic Guildmage
url=http://magiccards.info/mr/en/211.html
image=http://magiccards.info/scans/en/mr/211.jpg
value=2.383
rarity=C
type=Creature
subtype=Human,Wizard
cost={W}
pt=1/1
ability=pay {G},{T}: Target creature gets +0/+1 until end of turn.
timing=main
requires_groovy_code

Script

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

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [new MagicPayManaCostTapEvent(source, "{U}")];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
                MagicBounceTargetPicker.create(),
                this,
                "Put target creature\$ you control on top of its owner's library."
            );
        }

        @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.TopOfOwnersLibrary
                    ));
                }
            });
        }
    }
]
Pushed