Menu

Submission for Nylea, God of the Hunt

166

Config

 name=Nylea, God of the Hunt
url=http://magiccards.info/ths/en/166.html
image=http://magiccards.info/scans/en/ths/166.jpg
value=3.684
rarity=M
type=Legendary,Enchantment,Creature
subtype=God
cost={3}{G}
pt=6/6
ability=indestructible;\
		lord other creatures you control have trample;\
		pay {3}{G}: Target creature gets +2/+2 until end of turn.
timing=main
requires_groovy_code

Script

[
    new MagicStatic(MagicLayer.Type) {
        @Override
        public int getTypeFlags(final MagicPermanent permanent,final int flags) {
            return flags & ~MagicType.Creature.getMask();
        }
        @Override
        public void modSubTypeFlags(final MagicPermanent permanent,final Set<MagicSubType> flags) {
            flags.remove(MagicSubType.God);
        }
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getController().getDevotion(MagicColor.Green) < 5;
        }
    }
]
Pushed