Menu

Submission for Parasitic Bond

145

Config

name=Parasitic Bond
image=http://mtgimage.com/card/parasitic%20bond.jpg
value=2.500
rarity=U
type=Enchantment
subtype=Aura
cost={3}{B}
enchant=weaken,neg creature
timing=aura
requires_groovy_code
oracle=Enchant creature. At the beginning of the upkeep of enchanted creature's controller, Parasitic Bond deals 2 damage to that player.

Script

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer upkeepPlayer) {
            final MagicPermanent enchantedPermanent = permanent.getEnchantedPermanent()
            return enchantedPermanent.isController(upkeepPlayer) ?
                new MagicEvent(
                    permanent,
                    enchantedPermanent.getController(),
                    this,
                    "SN deals 2 damage to PN."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicDealDamageAction(event.getSource(),event.getRefPlayer(),2));
        }
    }
]
Pushed