forked from External/mage
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
|
|
package mage.cards.a;
|
|
|
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
|
import mage.abilities.effects.common.GainLifeEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.StaticFilters;
|
|
import mage.target.TargetPermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author spjspj
|
|
*/
|
|
public final class AppetiteForTheUnnatural extends CardImpl {
|
|
|
|
public AppetiteForTheUnnatural(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
|
|
|
// Destroy target artifact or enchantment. You gain 2 life.
|
|
this.getSpellAbility().addEffect(new DestroyTargetEffect());
|
|
this.getSpellAbility().addEffect(new GainLifeEffect(2));
|
|
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_ENCHANTMENT));
|
|
}
|
|
|
|
public AppetiteForTheUnnatural(final AppetiteForTheUnnatural card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AppetiteForTheUnnatural copy() {
|
|
return new AppetiteForTheUnnatural(this);
|
|
}
|
|
}
|