Menu

Submission for Purge the Profane

190

Comment

tested in magarena 1.43

Config

name=Purge the Profane
url=http://magiccards.info/gtc/en/190.html
image=http://magiccards.info/scans/en/gtc/190.jpg
value=2.146
rarity=C
type=Sorcery
cost={2}{W}{B}
timing=main
requires_groovy_code

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_PLAYER,
                this,
                "Target player\$ discards two cards and PN gains 2 life."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game,new MagicPlayerAction() {
                public void doAction(final MagicPlayer player) {
                    game.addEvent(new MagicDiscardEvent(
                        event.getSource(),
                        player,
                        2
                    ));
                    game.doAction(new MagicChangeLifeAction(event.getPlayer(),2));
                }
            });
        }
    }
]
Pushed