Menu

Submission for

Comment

tested in magarena 1.43

Config

name=Orzhov Guildmage
url=http://magiccards.info/cmd/en/217.html
image=http://magiccards.info/scans/en/cmd/217.jpg
value=3.677
rarity=U
type=Creature
subtype=Human,Wizard
cost={W/B}{W/B}
pt=2/2
timing=main
requires_groovy_code

Script

[
     new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.None),
        "Life+1"
    ) {

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
				MagicTargetChoice.TARGET_PLAYER,
                this,
                "Target player\$ gains 1 life."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeLifeAction(event.getPlayer(),1));
        }
    },
	new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Damage"
    ) {

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

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "Each player loses 1 life."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            for (final MagicPlayer player : game.getPlayers()) {
                game.doAction(new MagicChangeLifeAction(player,-1));
            }
        }
    }	
]
Pushed