Package mage.filter.common

Examples of mage.filter.common.FilterCreaturePermanent


    this.toughness = new MageInt(5);

    this.addAbility(FlyingAbility.getInstance());
    this.addAbility(FirstStrikeAbility.getInstance());
    this.addAbility(LifelinkAbility.getInstance());
    FilterPermanent filter1 = new FilterCreaturePermanent("Demon");
    filter1.getSubtype().add("Demon");
    this.addAbility(new ProtectionAbility(filter1));
    FilterPermanent filter2 = new FilterCreaturePermanent("Dragon");
    filter2.getSubtype().add("Dragon");
    this.addAbility(new ProtectionAbility(filter2));
  }
View Full Code Here


        defender = game.getPlayer(group.getDefenderId());
        break;
      }
    }
    if (defender != null) {
      FilterCreaturePermanent filter = new FilterCreaturePermanent("creature defending player owns");
      filter.getControllerId().add(defender.getId());
      TargetCreaturePermanent target = new TargetCreaturePermanent(filter);
      Player player = game.getPlayer(source.getControllerId());
      player.choose(Outcome.Damage, target, game);
      Permanent permanent = game.getPermanent(target.getFirstTarget());
      Permanent cyclops = game.getPermanent(source.getSourceId());
View Full Code Here

  public DayOfJudgment(UUID ownerId) {
    super(ownerId, 9, "Day of Judgment", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{2}{W}{W}");
    this.expansionSetCode = "ZEN";
    this.color.setWhite(true);
    this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterCreaturePermanent("creatures")));
  }
View Full Code Here

    return new DamageEverythingEffect(this);
  }

  @Override
  public boolean apply(Game game, Ability source) {
    for (Permanent permanent: game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getControllerId(), game)) {
      permanent.damage(amount, source.getId(), game, true, false);
    }
    for (UUID playerId: game.getPlayer(source.getControllerId()).getInRange()) {
      Player player = game.getPlayer(playerId);
      if (player != null)
View Full Code Here

    public DayOfJudgment(UUID ownerId) {
        super(ownerId, 9, "Day of Judgment", Rarity.RARE, new CardType[]{CardType.SORCERY}, "{2}{W}{W}");
        this.expansionSetCode = "ZEN";
        this.color.setWhite(true);
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterCreaturePermanent()));
    }
View Full Code Here

                        controller.moveCardToExileWithInfo(card, source.getSourceId(), sourceObject.getLogName(), source.getSourceId(), game, Zone.GRAVEYARD);
                    }
                }
            }
            // sacrifice all creatures
            for (Permanent permanent :game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getControllerId(), game)) {
                permanent.sacrifice(source.getSourceId(), game);
            }
            // put exiled cards to battlefield
            ExileZone exileZone = game.getState().getExile().getExileZone(source.getSourceId());
            if (exileZone != null) {
View Full Code Here

    private FilterCreaturePermanent filter;
    private boolean setTargetPointer;

    public BecomesBlockedAllTriggeredAbility(Effect effect, boolean optional) {
        this(effect, optional, new FilterCreaturePermanent("a creature"), false);
    }
View Full Code Here

    protected FilterCreaturePermanent filter;
    private boolean setTargetPointer;

    public DiesCreatureTriggeredAbility(Effect effect, boolean optional) {
        this(effect, optional, new FilterCreaturePermanent("a creature"));
    }
View Full Code Here

    public DiesCreatureTriggeredAbility(Effect effect, boolean optional) {
        this(effect, optional, new FilterCreaturePermanent("a creature"));
    }

    public DiesCreatureTriggeredAbility(Effect effect, boolean optional, boolean another) {
        this(effect, optional, new FilterCreaturePermanent("another creature"));
        filter.add(new AnotherPredicate());
    }
View Full Code Here

        this(effect, optional, new FilterCreaturePermanent("another creature"));
        filter.add(new AnotherPredicate());
    }
   
    public DiesCreatureTriggeredAbility(Effect effect, boolean optional, boolean another, boolean setTargetPointer) {
        this(effect, optional, new FilterCreaturePermanent("another creature"));
        filter.add(new AnotherPredicate());
        this.setTargetPointer = setTargetPointer;
    }
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterCreaturePermanent

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.