Menu

Submission for Disciple of the Vault

62

Config

name=Disciple of the Vault
url=http://magiccards.info/mi/en/62.html
image=http://mtgimage.com/set/mrd/disciple%20of%20the%20vault.jpg
value=3.395
rarity=C
type=Creature
subtype=Human,Cleric
cost={B}
pt=1/1
timing=main
requires_groovy_code

Script

[
    new MagicWhenOtherDiesTrigger() {
        @Override
        public MagicEvent executeTrigger(
            final MagicGame game,
            final MagicPermanent permanent,
            final MagicPermanent otherPermanent) {
            return (otherPermanent.hasType(MagicType.Artifact)) ?
                new MagicEvent(
                    permanent,
                    new MagicMayChoice(
                        MagicTargetChoice.NEG_TARGET_PLAYER
                    ),
                    this,
                    "PN may\$ have target player\$ lose 1 life."
                ):
                MagicEvent.NONE;
        }

        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                event.processTarget(game, {
                    final MagicPlayer player ->
                    game.doAction(new MagicChangeLifeAction(player,-1));
                });
            }
        }
    }
]
Pushed