Menu

Submission for Pyromancer's Swath

125

Config

name=Pyromancer's Swath
image=http://mtgimage.com/card/pyromancer%27s%20swath.jpg
value=2.500
rarity=R
type=Enchantment
cost={2}{R}
timing=enchantment
requires_groovy_code
oracle=If an instant or sorcery source you control would deal damage to a creature or player, it deals that much damage plus 2 to that creature or player instead. At the beginning of each end step, discard your hand.

Script

[
    new MagicIfDamageWouldBeDealtTrigger(MagicTrigger.INCREASE_DAMAGE) {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            if (damage.getSource().isFriend(permanent) &&
                damage.getSource().isInstantOrSorcerySpell()) {
            damage.setAmount(damage.getAmount() + 2);
            return MagicEvent.NONE;
            }
        }
    },
   new MagicAtEndOfTurnTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer player) {
            new MagicEvent(
                permanent,
                player,
                this,
                "PN discards his or her hand."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getPlayer().getHandSize();
                game.addEvent(new MagicDiscardEvent(event.getSource(),event.getPlayer(),amount));
        }
    }
]
Pushed