Menu

Submission for Sultai Runemark

86

Config

name=Sultai Runemark
image=http://mtgimage.com/card/sultai%20runemark.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={2}{B}
timing=aura
enchant=pump,pos creature
requires_groovy_code
oracle=Enchant creature. Enchanted creature gets +2/+2. Enchanted creature has deathtouch as long as you control a green or blue permanent.

Script

[
    new MagicStatic(MagicLayer.Ability) {
        @Override
        public void modAbilityFlags(final MagicPermanent source,final MagicPermanent permanent,final Set<MagicAbility> flags) {
            permanent.addAbility(MagicAbility.Deathtouch, flags);
        }
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().controlsPermanent(MagicColor.Blue) ||
            source.getController().controlsPermanent(MagicColor.Green) &&
            MagicStatic.acceptLinked(game, source, target);
        }
    },
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
            pt.add(2, 2);
        }
        public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return MagicStatic.acceptLinked(game, source, target);
        }
    }
]
Pushed