Menu

Submission for Foundry Champion

165

Config

name=Foundry Champion
image=http://mtgimage.com/card/foundry%20champion.jpg
value=2.500
rarity=R
type=Creature
subtype=Elemental,Soldier
cost={4}{R}{W}
pt=4/4
ability={R}: SN gets +1/+0 until end of turn.;\
{W}: SN gets +0/+1 until end of turn.
timing=main
requires_groovy_code
oracle=When Foundry Champion enters the battlefield, it deals damage to target creature or player equal to the number of creatures you control. {R}: Foundry Champion gets +1/+0 until end of turn. {W}: Foundry Champion gets +0/+1 until end of turn.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {      
            return new MagicEvent(
                permanent,
                MagicTargetChoice.NEG_TARGET_CREATURE_OR_PLAYER,
                this,
                "When SN enters the battlefield, it deals damage to target creature or player\$ "+
                "equal to the number of creatures you control."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTarget(game, {
                final MagicDamage damage = new MagicDamage(
                event.getSource(),
                it,
                event.getPermanent().getController().getNrOfPermanents(MagicType.Creature)
                );
                game.doAction(new MagicDealDamageAction(damage));
            });
        }
    }
]
Pushed