Menu

Submission for Flesh Reaver

136

Config

name=Flesh Reaver
image=http://mtgimage.com/card/flesh%20reaver.jpg
value=2.500
rarity=U
type=Creature
subtype=Horror
cost={1}{B}
pt=4/4
timing=main
requires_groovy_code
oracle=Whenever Flesh Reaver deals damage to a creature or opponent, Flesh Reaver deals that much damage to you.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (permanent == damage.getSource() && damage.isTargetCreature()) ?
                new MagicEvent(
                    permanent,
                    damage.getDealtAmount(),
                    this,
                    "SN deals RN damage to PN."
                ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
             game.doAction(new MagicDealDamageAction(event.getSource(),event.getPlayer(),event.getRefInt()));
        }
    },
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (permanent == damage.getSource() && permanent.isOpponent(damage.getTarget())) ?
                new MagicEvent(
                    permanent,
                    damage.getDealtAmount(),
                    this,
                    "SN deals RN damage to PN."
                ):
                MagicEvent.NONE;
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
             game.doAction(new MagicDealDamageAction(event.getSource(),event.getPlayer(),event.getRefInt()));
        }
    }
]
Pushed