Menu

Submission for Caress of Phyrexia

53

Config

name=Caress of Phyrexia
image=http://mtgimage.com/card/caress%20of%20phyrexia.jpg
value=2.500
rarity=U
type=Sorcery
cost={3}{B}{B}
timing=main
requires_groovy_code
oracle=Target player draws three cards, loses 3 life, and gets three poison counters.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.TARGET_PLAYER,
                this,
                "Target player\$ draws 3 cards, loses 3 life and gets 3 poison counters."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                game.doAction(new MagicDrawAction(it,3));
                game.doAction(new MagicChangeLifeAction(it, 3));
                game.doAction(new MagicChangePoisonAction(it,3));
            });
        }
    }
]
Pushed