forked from External/mage
41 lines
1 KiB
Java
41 lines
1 KiB
Java
package mage.cards.e;
|
|
|
|
import mage.abilities.effects.common.ExileTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.filter.FilterPermanent;
|
|
import mage.filter.common.FilterCreaturePermanent;
|
|
import mage.filter.predicate.permanent.TappedPredicate;
|
|
import mage.target.TargetPermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class Expel extends CardImpl {
|
|
|
|
private static final FilterPermanent filter = new FilterCreaturePermanent("tapped creature");
|
|
|
|
static {
|
|
filter.add(TappedPredicate.TAPPED);
|
|
}
|
|
|
|
public Expel(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}");
|
|
|
|
// Exile target tapped creature.
|
|
this.getSpellAbility().addEffect(new ExileTargetEffect());
|
|
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
|
}
|
|
|
|
private Expel(final Expel card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Expel copy() {
|
|
return new Expel(this);
|
|
}
|
|
}
|