Menu

Submission for Goblin Caves

119

Config

name=Goblin Caves
image=http://mtgimage.com/card/goblin%20caves.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={1}{R}{R}
enchant=pump,land
timing=aura
requires_groovy_code
oracle=Enchant land. As long as enchanted land is a basic Mountain, Goblin creatures get +0/+2.

Script

[
    new MagicStatic(
        MagicLayer.ModPT,
        MagicTargetFilterFactory.GOBLIN_CREATURE
    ) {
        @Override
        public void modPowerToughness(final MagicPermanent source,final MagicPermanent permanent,final MagicPowerToughness pt) {
            pt.add(0, 2);
        }
        @Override
        public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
            return source.getEnchantedPermanent().hasSubType(MagicSubType.Mountain);
        }
    }
]
Pushed