Menu

Submission for Sulfuric Vortex

150

Config

name=Sulfuric Vortex
image=http://magiccards.info/scans/en/vma/190.jpg
value=2.500
rarity=R
type=Enchantment
cost={1}{R}{R}
timing=enchantment
requires_groovy_code
oracle=At the beginning of each player's upkeep, Sulfuric Vortex deals 2 damage to that player. If a player would gain life, that player gains no life instead.

Script

[
    new MagicIfLifeWouldChangeTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicChangeLifeAction act) {
            if (act.getLifeChange() > 0) {
                act.setLifeChange(0);
            }
            return MagicEvent.NONE;
        }
    },
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPlayer upkeepPlayer) {
            return new MagicEvent(
                permanent,
                upkeepPlayer,
                this,
                "PN loses 2 life."
            );
        }
        @Override
        public void executeEvent(final MagicGame game,final MagicEvent event) {
            game.doAction(new MagicDealDamageAction(event.getPermanent(),event.getPlayer(),2));
        }
    }
]
Pushed