Menu

Submission for Foil

70

Config

name=Foil
image=http://mtgimage.com/card/foil.jpg
value=2.500
rarity=U
type=Instant
cost={2}{U}{U}
effect=Counter target spell.
timing=counter
requires_groovy_code
oracle=You may discard an Island card and another card rather than pay Foil's mana cost. Counter target spell.

Script

def ISLAND_CARD_FROM_HAND = new MagicCardFilterImpl() {
    public boolean accept(final MagicGame game,final MagicPlayer player,final MagicCard target) {
        return target.hasSubType(MagicSubType.Island);
    }
    public boolean acceptType(final MagicTargetType targetType) {
        return targetType == MagicTargetType.Hand;
    }
}; 
def AN_ISLAND_CARD_FROM_HAND = new MagicTargetChoice(
    ISLAND_CARD_FROM_HAND,  
    MagicTargetHint.None,
    "an Island card from your hand"
);

[
    new MagicCardActivation(
        [MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Counter,true),
        "Alt"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicCard source) {
            return [
                new MagicDiscardEvent(source),
                new MagicDiscardChosenEvent(source, AN_ISLAND_CARD_FROM_HAND)
            ];
        }
    }
]
Pushed