Menu

Submission for Hunger of the Nim

46

Config

name=Hunger of the Nim
image=http://mtgimage.com/card/hunger%20of%20the%20nim.jpg
value=2.500
rarity=C
type=Sorcery
cost={1}{B}
timing=main
requires_groovy_code
oracle=Target creature gets +1/+0 until end of turn for each artifact you control.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.POS_TARGET_CREATURE,
                MagicPumpTargetPicker.create(),         
	        this,
                "Target creature\$ gets +1/+0 until end of turn for each artifact you control."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                final int amount = event.getPlayer().getNrOfPermanents(MagicType.Artifact);
                game.doAction(new MagicChangeTurnPTAction(it, amount, 0));
            });
        }
    }
]
Pushed