Menu

Submission for Satyr Firedancer

108

Config

name=Satyr Firedancer
image=http://mtgimage.com/card/satyr%20firedancer.jpg
value=2.500
rarity=R
type=Enchantment,Creature
subtype=Satyr
cost={1}{R}
pt=1/1
timing=main
requires_groovy_code
oracle=Whenever an instant or sorcery spell you control deals damage to an opponent, Satyr Firedancer deals that much damage to target creature that player controls.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (permanent.isOpponent(damage.getTarget()) &&
                    permanent.isFriend(damage.getSource()) &&
                    damage.getSource().hasType(MagicType.Sorcery) || damage.getSource().hasType(MagicType.Instant)) ?
                new MagicEvent(
                    permanent,
                    MagicTargetChoice.TARGET_CREATURE_YOUR_OPPONENT_CONTROLS,
                    damage.getDealtAmount(),
                    this,
                    "SN deals RN damage to target creature\$ your opponent controls."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicDealDamageAction(
                    event.getSource(),
                    it,
                    event.getRefInt()
                ));
            });
        }
    }
]
Pushed