forked from External/mage
48 lines
1.3 KiB
Java
48 lines
1.3 KiB
Java
|
|
package mage.cards.v;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
|
import mage.abilities.keyword.CyclingAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.FilterPermanent;
|
|
import mage.filter.predicate.Predicates;
|
|
import mage.target.TargetPermanent;
|
|
|
|
/**
|
|
*
|
|
* @author North
|
|
*/
|
|
public final class VolcanicSubmersion extends CardImpl {
|
|
|
|
private static final FilterPermanent filter = new FilterPermanent("artifact or land");
|
|
|
|
static {
|
|
filter.add(Predicates.or(
|
|
CardType.ARTIFACT.getPredicate(),
|
|
CardType.LAND.getPredicate()));
|
|
}
|
|
|
|
public VolcanicSubmersion(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{4}{R}");
|
|
|
|
|
|
// Destroy target artifact or land.
|
|
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
|
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
|
// Cycling {2}
|
|
this.addAbility(new CyclingAbility(new ManaCostsImpl<>("{2}")));
|
|
}
|
|
|
|
private VolcanicSubmersion(final VolcanicSubmersion card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public VolcanicSubmersion copy() {
|
|
return new VolcanicSubmersion(this);
|
|
}
|
|
}
|