Menu

Submission for March of the Machines

6

Config

name=March of the Machines
image=http://mtgimage.com/card/march%20of%20the%20machines.jpg
value=4.312
rarity=R
type=Enchantment
cost={3}{U}
timing=main
requires_groovy_code
oracle=Each noncreature artifact is an artifact creature with power and toughness each equal to its converted mana cost.

Script

[
    new MagicStatic(MagicLayer.SetPT, MagicTargetFilterFactory.NONCREATURE_ARTIFACT) {
		@Override
		public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
			final int cmc = permanent.getConvertedCost();
			pt.set(cmc,cmc);
		}
    },
    new MagicStatic(MagicLayer.Type, MagicTargetFilterFactory.NONCREATURE_ARTIFACT) {
        @Override
        public int getTypeFlags(final MagicPermanent permanent, final int flags) {
            return flags | MagicType.Creature.getMask();
        }
    }
]
Pushed