Menu

Submission for High Priest of Penance

171

Comment

tested in magarena 1.43

Config

name=High Priest of Penance
url=http://magiccards.info/gtc/en/171.html
image=http://magiccards.info/scans/en/gtc/171.jpg
value=3.935
rarity=R
type=Creature
subtype=Human,Cleric
cost={W}{B}
pt=1/1
timing=main
requires_groovy_code

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            final int amount = damage.getDealtAmount();
            return (damage.getTarget() == permanent) ?
                new MagicEvent(
                    permanent,
					new MagicMayChoice(
						MagicTargetChoice.NEG_TARGET_NONLAND_PERMANENT
					),
					new MagicDestroyTargetPicker(false),
					this,
					"Destroy target nonland permanent."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
			if(event.isYes()){
				event.processTargetPermanent(game,new MagicPermanentAction() {
					public void doAction(final MagicPermanent creature) {
						game.doAction(new MagicDestroyAction(creature));
					}
				});
			}
        }
    }
]
Pushed