Menu

Submission for Refreshing Rain

110

Config

name=Refreshing Rain
image=http://mtgimage.com/card/refreshing%20rain.jpg
value=2.500
rarity=U
type=Instant
cost={3}{G}
effect=Target player gains 6 life.
timing=pump
requires_groovy_code
oracle=If an opponent controls a Swamp and you control a Forest, you may cast Refreshing Rain without paying its mana cost. Target player gains 6 life.

Script

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

[
     new MagicCardActivation(
        [FOREST_AND_SWAMP_CONDITION, MagicCondition.CARD_CONDITION],
        new MagicActivationHints(MagicTiming.Pump),
        "NoCost"
    ) {

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