forked from External/mage
52 lines
1.8 KiB
Java
52 lines
1.8 KiB
Java
|
|
package mage.cards.a;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.ActivateAsSorceryActivatedAbility;
|
|
import mage.abilities.costs.common.TapSourceCost;
|
|
import mage.abilities.costs.mana.ColorlessManaCost;
|
|
import mage.abilities.effects.common.ExileTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Zone;
|
|
import mage.filter.FilterPermanent;
|
|
import mage.filter.predicate.Predicates;
|
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
|
import mage.target.TargetPermanent;
|
|
|
|
/**
|
|
*
|
|
* @author TheElk801
|
|
*/
|
|
public final class AmuletOfUnmaking extends CardImpl {
|
|
|
|
private static final FilterPermanent filter = new FilterPermanent("artifact, creature, or enchantment");
|
|
|
|
static {
|
|
filter.add(Predicates.or(
|
|
new CardTypePredicate(CardType.ARTIFACT),
|
|
new CardTypePredicate(CardType.CREATURE),
|
|
new CardTypePredicate(CardType.ENCHANTMENT)));
|
|
}
|
|
|
|
public AmuletOfUnmaking(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{5}");
|
|
|
|
// {5}, {tap}, Exile Amulet of Unmaking: Exile target artifact, creature, or land. Activate this ability only any time you could cast a sorcery.
|
|
Ability ability = new ActivateAsSorceryActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect("Exile target artifact, creature or land"), new ColorlessManaCost(5));
|
|
ability.addCost(new TapSourceCost());
|
|
ability.addTarget(new TargetPermanent(filter));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
public AmuletOfUnmaking(final AmuletOfUnmaking card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AmuletOfUnmaking copy() {
|
|
return new AmuletOfUnmaking(this);
|
|
}
|
|
}
|