foul-magics/Mage.Sets/src/mage/cards/s/SkyshroudCutter.java
2018-06-02 17:59:49 +02:00

47 lines
1.4 KiB
Java

package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.costs.AlternativeCostSourceAbility;
import mage.abilities.costs.common.GainLifePlayersCost;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.predicate.mageobject.SubtypePredicate;
/**
*
* @author LevelX2
*/
public final class SkyshroudCutter extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent("If you control a Forest");
static {
filter.add(new SubtypePredicate(SubType.FOREST));
}
public SkyshroudCutter(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
this.subtype.add(SubType.BEAST);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// If you control a Forest, rather than pay Skyshroud Cutter's mana cost, you may have each other player gain 5 life.
this.addAbility(new AlternativeCostSourceAbility(new GainLifePlayersCost(5), new PermanentsOnTheBattlefieldCondition(filter)));
}
public SkyshroudCutter(final SkyshroudCutter card) {
super(card);
}
@Override
public SkyshroudCutter copy() {
return new SkyshroudCutter(this);
}
}