Menu

Submission for Submerge

48

Config

name=Submerge
image=http://mtgimage.com/card/submerge.jpg
value=2.500
rarity=U
type=Instant
cost={4}{U}
effect=Put target creature on top of its owner's library.
timing=removal
requires_groovy_code
oracle=If an opponent controls a Forest and you control an Island, you may cast Submerge without paying its mana cost. Put target creature on top of its owner's library.

Script

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

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

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