Menu

Submission for Eidolon of Countless Battles

7

Config

 name=Eidolon of Countless Battles
url=http://magiccards.info/query?q=%21eidolon%20of%20countless%20battles
image=http://mtgimage.com/card/eidolon%20of%20countless%20battles.jpg
value=3.611
rarity=M
type=Enchantment,Creature
subtype=Spirit
cost={1}{W}{W}
pt=0/0
ability=bestow {2}{W}{W}
timing=main
requires_groovy_code

Script

[
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
            final int size = source.getController().getNrOfPermanents(MagicType.Creature) + source.getController().getNrOfPermanents(MagicType.Enchantment);
            pt.add(size,size);
        }
        
    },
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
            final int size = source.getController().getNrOfPermanents(MagicType.Creature) + source.getController().getNrOfPermanents(MagicType.Enchantment);
            pt.add(size,size);
        }
        @Override
        public boolean accept(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return MagicStatic.acceptLinked(game, source, target);
        }
    }
]
Pushed