Menu

Submission for Mogg Salvage

94

Config

name=Mogg Salvage
image=http://mtgimage.com/card/mogg%20salvage.jpg
value=2.500
rarity=U
type=Instant
cost={2}{R}
effect=Destroy target artifact.
timing=removal
requires_groovy_code
oracle=If an opponent controls an Island and you control a Mountain, you may cast Mogg Salvage without paying its mana cost. Destroy target artifact.

Script

def MOUNTAIN_AND_ISLAND_CONDITION = new MagicCondition() {
    public boolean accept(final MagicSource source) {
        return source.getController().getNrOfPermanents(MagicSubType.Mountain) >= 1 && 
        source.getController().getOpponent().getNrOfPermanents(MagicSubType.Island) >= 1;
    }
};

[
     new MagicCardActivation(
        [MOUNTAIN_AND_ISLAND_CONDITION, MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Removal),
        "NoCost"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicCard source) {
            return [new MagicPayManaCostEvent(source,"{0}")];
        }
    }
]
Pushed