mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
[MAT] Implement Filter Out
This commit is contained in:
parent
fa7c088a76
commit
7e62010175
2 changed files with 40 additions and 0 deletions
39
Mage.Sets/src/mage/cards/f/FilterOut.java
Normal file
39
Mage.Sets/src/mage/cards/f/FilterOut.java
Normal file
|
@ -0,0 +1,39 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.abilities.effects.common.ReturnToHandFromBattlefieldAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class FilterOut extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterNonlandPermanent("noncreature, nonland permanents");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.not(CardType.LAND.getPredicate()));
|
||||
}
|
||||
|
||||
public FilterOut(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{U}{U}");
|
||||
|
||||
// Return all noncreature, nonland permanents to their owners' hands.
|
||||
this.getSpellAbility().addEffect(new ReturnToHandFromBattlefieldAllEffect(filter));
|
||||
}
|
||||
|
||||
private FilterOut(final FilterOut card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FilterOut copy() {
|
||||
return new FilterOut(this);
|
||||
}
|
||||
}
|
|
@ -21,6 +21,7 @@ public final class MarchOfTheMachineTheAftermath extends ExpansionSet {
|
|||
this.hasBasicLands = false;
|
||||
this.hasBoosters = false; // temporary
|
||||
|
||||
cards.add(new SetCardInfo("Filter Out", 7, Rarity.UNCOMMON, mage.cards.f.FilterOut.class));
|
||||
cards.add(new SetCardInfo("Jolrael, Voice of Zhalfir", 33, Rarity.RARE, mage.cards.j.JolraelVoiceOfZhalfir.class));
|
||||
cards.add(new SetCardInfo("Spark Rupture", 5, Rarity.RARE, mage.cards.s.SparkRupture.class));
|
||||
cards.add(new SetCardInfo("The Kenriths' Royal Funeral", 34, Rarity.RARE, mage.cards.t.TheKenrithsRoyalFuneral.class));
|
||||
|
|
Loading…
Reference in a new issue