Package mage.filter.common

Examples of mage.filter.common.FilterControlledCreaturePermanent


        super(ownerId, 310, "Slate of Ancestry", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{4}");
        this.expansionSetCode = "ONS";

        // {4}, {tap}, Discard your hand: Draw a card for each creature you control.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD,
                new DrawCardSourceControllerEffect(new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent("creature you control"))),
                new GenericManaCost(4));
        ability.addCost(new TapSourceCost());
        ability.addCost(new DiscardHandCost());
        this.addAbility(ability);
View Full Code Here


}

class TrailOfMysteryTriggeredAbility extends TurnedFaceUpAllTriggeredAbility {

    public TrailOfMysteryTriggeredAbility() {
        super(new BoostTargetEffect(2,2,Duration.EndOfTurn), new FilterControlledCreaturePermanent(), true);
    }
View Full Code Here

        Ability ability = new EntersBattlefieldTriggeredAbility(new ConstrictingSliverExileEffect(), true);
        ability.addTarget(new TargetCreaturePermanent(filterTarget));
        ability.addEffect(new ConstrictingSliverAddDelayedReturnEffect());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD,
                new GainAbilityAllEffect(ability,
                Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Sliver","Sliver creatures"),
                "Sliver creatures you control have \"When this creature enters the battlefield, you may exile target creature an opponent controls until this creature leaves the battlefield.\"")));

    }
View Full Code Here

        this.expansionSetCode = "7ED";

        this.color.setGreen(true);

        // Each creature you control can't be blocked by more than one creature.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedByMoreThanOneAllEffect(new FilterControlledCreaturePermanent())));
    }
View Full Code Here

        // - Creatures you control get +1/+1 and gain lifelink until end of turn.
        mode = new Mode();
        Effect effect = new BoostControlledEffect(1,1, Duration.EndOfTurn);
        effect.setText("Creatures you control get +1/+1");
        mode.getEffects().add(effect);
        effect = new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent());
        effect.setText("and gain lifelink until end of turn");
        mode.getEffects().add(effect);
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.color.setRed(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(4);

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield, new FilterControlledCreaturePermanent("Creatures"))));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new UrabraskTheHiddenEffect()));
    }
View Full Code Here

        super(ownerId, 196, "Might of the Masses", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{G}");
        this.expansionSetCode = "ROE";

        this.color.setGreen(true);

        PermanentsOnBattlefieldCount value = new PermanentsOnBattlefieldCount(new FilterControlledCreaturePermanent());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addEffect(new BoostTargetEffect(value, value, Duration.EndOfTurn, true));
    }
View Full Code Here

        if (player != null) {
            if (player.getLibrary().size() > 0) {
                Card card = player.getLibrary().getFromTop(game);
                player.revealCards("DescendantsPath", new CardsImpl(card), game);
                if (card.getCardType().contains(CardType.CREATURE)) {
                    FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();

                    ArrayList<Predicate<MageObject>> subtypes = new ArrayList<>();
                    for (String subtype: card.getSubtype()) {
                        subtypes.add(new SubtypePredicate(subtype));
                    }
                    filter.add(Predicates.or(subtypes));

                    int count = game.getBattlefield().getAllActivePermanents(filter, player.getId(), game).size();
                    if (count > 0) {
                        game.informPlayers("DescendantsPath: Found a creature that shares a creature type with the revealed card.");
                        if (player.chooseUse(Outcome.Benefit, "Cast the card?", game)) {
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(6);
        this.toughness = new MageInt(6);

        // At the beginning of your upkeep, return a creature you control to its owner's hand.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new ReturnToHandChosenControlledPermanentEffect(new FilterControlledCreaturePermanent()), TargetController.YOU, false));
       
    }
View Full Code Here

        this.color.setGreen(true);
        this.color.setBlue(true);

        // Creatures you control become X/X until end of turn.
        DynamicValue variableMana = new ManacostVariableValue();
        this.getSpellAbility().addEffect(new SetPowerToughnessAllEffect(variableMana, variableMana, Duration.EndOfTurn, new FilterControlledCreaturePermanent("Creatures you control"), true));
    }
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.