Package mage.filter

Examples of mage.filter.FilterCard


public class TargetCard<T extends TargetCard<T>> extends TargetObject<TargetCard<T>> {

  protected FilterCard filter;

  protected TargetCard(Zone zone) {
    this(1, 1, zone, new FilterCard());
  }
View Full Code Here


* @author BetaSteward_at_googlemail.com
*/
public class TargetCardInHand extends TargetCard<TargetCardInHand> {

  public TargetCardInHand() {
    this(1, 1, new FilterCard());
  }
View Full Code Here

* @author BetaSteward_at_googlemail.com
*/
public class TargetCardInLibrary extends TargetCard<TargetCardInLibrary> {

  public TargetCardInLibrary() {
    this(1, 1, new FilterCard());
  }
View Full Code Here

* @author BetaSteward_at_googlemail.com
*/
public class TargetCardInGraveyard extends TargetCard<TargetCardInGraveyard> {

  public TargetCardInGraveyard() {
    this(1, 1, new FilterCard());
  }
View Full Code Here

* @author BetaSteward_at_googlemail.com
*/
public class TargetCardInYourGraveyard extends TargetCard<TargetCardInYourGraveyard> {

  public TargetCardInYourGraveyard() {
    this(1, 1, new FilterCard());
  }
View Full Code Here

public class TargetDiscard extends TargetCard<TargetDiscard> {

  private UUID playerId;

  public TargetDiscard(UUID playerId) {
    this(1, 1, new FilterCard(), playerId);
  }
View Full Code Here

public class GainProtectionFromColorTargetEffect extends GainAbilityTargetEffect {

  FilterCard protectionFilter;

  public GainProtectionFromColorTargetEffect(Duration duration) {
    super(new ProtectionAbility(new FilterCard()), duration);
    protectionFilter = (FilterCard)((ProtectionAbility)ability).getFilter();
    protectionFilter.setUseColor(true);
  }
View Full Code Here

  public JundPanoramaAbility() {
    super(Zone.BATTLEFIELD, null);
    addCost(new TapSourceCost());
    addCost(new GenericManaCost(1));
    addCost(new SacrificeSourceCost());
    FilterCard filter = new FilterCard("Swamp, Mountain, or Forest");
    filter.getName().add("Swamp");
    filter.getName().add("Mountain");
    filter.getName().add("Forest");
    TargetCardInLibrary target = new TargetCardInLibrary(filter);
    addEffect(new SearchLibraryPutInPlayEffect(target, true, Outcome.PutLandInPlay));
  }
View Full Code Here

    this.color.setWhite(true);
    this.power = new MageInt(2);
    this.toughness = new MageInt(2);

    this.addAbility(FirstStrikeAbility.getInstance());
    FilterCard filter = new FilterCard("Black");
    filter.setUseColor(true);
    filter.getColor().setBlack(true);
    this.addAbility(new ProtectionAbility(filter));
  }
View Full Code Here

    this.subtype.add("Elk");
    this.color.setGreen(true);
    this.power = new MageInt(3);
    this.toughness = new MageInt(3);

    FilterCard filter1 = new FilterCard("Blue");
    filter1.setUseColor(true);
    filter1.getColor().setBlue(true);
    this.addAbility(new ProtectionAbility(filter1));
    FilterCard filter2 = new FilterCard("Black");
    filter2.setUseColor(true);
    filter2.getColor().setBlack(true);
    this.addAbility(new ProtectionAbility(filter2));
    this.addAbility(new SimpleStaticAbility(Zone.STACK, new CantCounterSourceEffect()));
  }
View Full Code Here

TOP

Related Classes of mage.filter.FilterCard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.