Menu

Submission for Goblin Shrine

122

Config

name=Goblin Shrine
image=http://mtgimage.com/card/goblin%20shrine.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={1}{R}{R}
ability=When SN leaves the battlefield, SN deals 1 damage to each Goblin creature.
enchant=pump,land
timing=aura
requires_groovy_code
oracle=Enchant land. As long as enchanted land is a basic Mountain, Goblin creatures get +1/+0. When Goblin Shrine leaves the battlefield, it deals 1 damage to each Goblin creature.

Script

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