Package mage.filter.common

Examples of mage.filter.common.FilterControlledCreaturePermanent


* @author BetaSteward_at_googlemail.com
*/
public class TargetControlledCreaturePermanent extends TargetControlledPermanent<TargetControlledCreaturePermanent> {

  public TargetControlledCreaturePermanent() {
    this(1, 1, new FilterControlledCreaturePermanent(), false);
  }
View Full Code Here


  public TargetControlledCreaturePermanent() {
    this(1, 1, new FilterControlledCreaturePermanent(), false);
  }

  public TargetControlledCreaturePermanent(int numTargets) {
    this(numTargets, numTargets, new FilterControlledCreaturePermanent(), false);
  }
View Full Code Here

    public AttacksCreatureYourControlTriggeredAbility(Effect effect) {
        this(effect, false);
    }

    public AttacksCreatureYourControlTriggeredAbility(Effect effect, boolean optional) {
        this(effect, optional, new FilterControlledCreaturePermanent());
    }
View Full Code Here

    public AttacksCreatureYourControlTriggeredAbility(Effect effect, boolean optional) {
        this(effect, optional, new FilterControlledCreaturePermanent());
    }

    public AttacksCreatureYourControlTriggeredAbility(Effect effect, boolean optional, boolean setTargetPointer) {
        this(effect, optional, new FilterControlledCreaturePermanent(), setTargetPointer);
    }
View Full Code Here

                game.getState().setValue("offering_Id_" + card.getId(), null);
            }

            if (game.getBattlefield().count(((OfferingAbility) source).getFilter(), source.getSourceId(), source.getControllerId(), game) > 0) {

                FilterControlledCreaturePermanent filter = ((OfferingAbility) source).getFilter();
                Card spellToCast = game.getCard(source.getSourceId());
                Player player = game.getPlayer(source.getControllerId());
                if (player != null &&  !CardUtil.isCheckPlayableMode(affectedAbility) &&
                        player.chooseUse(Outcome.Benefit, "Offer a " + filter.getMessage() + " to cast " + spellToCast.getName() + "?", game)) {
                    Target target = new TargetControlledCreaturePermanent(1,1,filter,true);
                    player.chooseTarget(Outcome.Sacrifice, target, source, game);
                    if (!target.isChosen()) {
                        return false;
                    }
View Full Code Here

        //20101001 - 509.1c
        // map with attackers (UUID) that must be blocked by at least one blocker and a set of all creatures that can block it and don't block yet
        Map<UUID, Set<UUID>> mustBeBlockedByAtLeastOne = new HashMap<>();

        // check mustBlock requirements of creatures from opponents of attacking player
        for (Permanent creature : game.getBattlefield().getActivePermanents(new FilterControlledCreaturePermanent(), player.getId(), game)) {
            // creature is controlled by an opponent of the attacker
            if (opponents.contains(creature.getControllerId())) {

                // Creature is already blocking but not forced to do so
                if (creature.getBlocking() > 0) {
View Full Code Here

        this.expansionSetCode = "EXO";

        this.color.setBlack(true);

        // As an additional cost to cast Culling the Weak, sacrifice a creature.
        this.getSpellAbility().addCost(new SacrificeTargetCost(new TargetControlledCreaturePermanent(new FilterControlledCreaturePermanent("a creature"))));
       
        // Add {B}{B}{B}{B} to your mana pool.
        this.getSpellAbility().addEffect(new BasicManaEffect(new Mana(0, 0, 0, 0, 4, 0, 0)));
    }
View Full Code Here

        this.expansionSetCode = "ZEN";

        // Creatures you control get +1/+1, have flying, and are indestructible.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, new FilterCreaturePermanent(), false)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.WhileOnBattlefield, new FilterCreaturePermanent())));
        Effect effect = new GainAbilityAllEffect(IndestructibleAbility.getInstance(), Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Creatures you control"), false);
        effect.setText("Creatures you control are indestructible");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
        // At the beginning of your upkeep, sacrifice a creature. If you can't, sacrifice Eldrazi Monument.
        this.addAbility(new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new EldraziMonumentEffect()));
    }
View Full Code Here

* @author BetaSteward_at_googlemail.com
*/
public class TargetControlledCreaturePermanent extends TargetControlledPermanent {

    public TargetControlledCreaturePermanent() {
        this(1, 1, new FilterControlledCreaturePermanent(), false);
    }
View Full Code Here

    public TargetControlledCreaturePermanent() {
        this(1, 1, new FilterControlledCreaturePermanent(), false);
    }

    public TargetControlledCreaturePermanent(int numTargets) {
        this(numTargets, numTargets, new FilterControlledCreaturePermanent(), false);
    }
View Full Code Here

TOP

Related Classes of mage.filter.common.FilterControlledCreaturePermanent

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.