Menu

Submission for Argothian Treefolk

143

Comment

Based on Uncle Istvan

Config

name=Argothian Treefolk
image=http://mtgimage.com/card/argothian%20treefolk.jpg
value=2.500
rarity=C
type=Creature
subtype=Treefolk
cost={3}{G}{G}
pt=3/5
timing=main
requires_groovy_code
oracle=Prevent all damage that would be dealt to Argothian Treefolk by artifact sources.

Script

[
    new MagicIfDamageWouldBeDealtTrigger(MagicTrigger.PREVENT_DAMAGE) {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            if (damage.getTarget() == permanent && damage.getSource().hasType(MagicType.Artifact)) {
                // Replacement effect. Generates no event or action.
                damage.prevent();
            }
            return MagicEvent.NONE;
        }
    }
]
Pushed