Menu

Submission for Akron Legionnaire

1

Config

name=Akron Legionnaire
image=http://mtgimage.com/card/akron%20legionnaire.jpg
value=2.500
rarity=R
type=Creature
subtype=Giant,Soldier
cost={6}{W}{W}
pt=8/4
timing=main
requires_groovy_code
oracle=Except for creatures named Akron Legionnaire and artifact creatures, creatures you control can't attack.

Script

[
    new MagicStatic(
        MagicLayer.Ability,
        MagicTargetFilterFactory.CREATURE_YOU_CONTROL
    ) {
        @Override
        public void modAbilityFlags(
                final MagicPermanent source,
                final MagicPermanent permanent,
                final Set<MagicAbility> flags) {
            permanent.addAbility(MagicAbility.CannotAttack, flags);
        }
        @Override
        public boolean condition(
                final MagicGame game,
                final MagicPermanent source,
                final MagicPermanent target) {
            return !target.getName().equals("Akron Legionnaire") || !target.hasType(MagicType.Artifact);
        }
    }
]
Pushed