Menu

Submission for Argothian Pixies

142

Config

name=Argothian Pixies
image=http://mtgimage.com/card/argothian%20pixies.jpg
value=2.500
rarity=C
type=Creature
subtype=Faerie
cost={1}{G}
pt=2/1
ability=SN can't be blocked by artifact creatures.
timing=main
requires_groovy_code
oracle=Argothian Pixies can't be blocked by artifact creatures. Prevent all damage that would be dealt to Argothian Pixies by artifact creatures.

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) && damage.getSource().hasType(MagicType.Creature)) {
                // Replacement effect. Generates no event or action.
                damage.prevent();
            }
            return MagicEvent.NONE;
        }
    }
]
Pushed