Menu

Submission for Raid Bombardment

161

Config

name=Raid Bombardment
image=http://mtgimage.com/card/raid%20bombardment.jpg
value=2.500
rarity=C
type=Enchantment
cost={2}{R}
timing=enchantment
requires_groovy_code
oracle=Whenever a creature you control with power 2 or less attacks, Raid Bombardment deals 1 damage to defending player.

Script

[
    new MagicWhenAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return (permanent.isFriend(creature) &&
                    creature.getPower() <= 2) ?
                new MagicEvent(
                    permanent,
                    game.getDefendingPlayer(),
                    this,
                    "SN deals 1 damage to defending player."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicDealDamageAction(event.getSource(),game.getDefendingPlayer(),1));
        }
    }
]
Pushed