Menu

Submission for Heliod, God of the Sun

17

Config

name=Heliod, God of the Sun
url=http://magiccards.info/ths/en/17.html
image=http://magiccards.info/scans/en/ths/17.jpg
value=3.708
rarity=M
type=Legendary,Enchantment,Creature
subtype=God
cost={3}{W}
pt=5/6
ability=indestructible;\
		lord other creatures you control have vigilance;\
		pay {2}{W}{W}: PN puts a 2/1 white Cleric enchantment creature token onto the battlefield.
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.White) < 5;
        }
    }
]
Pushed