Menu

Submission for Copperhoof Vorrac

116

Config

name=Copperhoof Vorrac
image=http://mtgimage.com/card/copperhoof%20vorrac.jpg
value=2.500
rarity=R
type=Creature
subtype=Boar,Beast
cost={3}{G}{G}
pt=2/2
timing=main
requires_groovy_code
oracle=Copperhoof Vorrac gets +1/+1 for each untapped permanent your opponents control.

Script

def UNTAPPED_PERMANENT=new MagicPermanentFilterImpl(){
    public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
        return target.isPermanent() && 
               target.isUntapped();
    }
};
[
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
            final int amount = permanent.getOpponent().getNrOfPermanents(UNTAPPED_PERMANENT);
            pt.add(amount,amount);
        }
    }
]
Pushed