Examples of TargetControlledPermanent


Examples of mage.target.common.TargetControlledPermanent

        this.expansionSetCode = "TMP";
        this.subtype.add("Beast");
        this.color.setBlack(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(2);
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FearAbility.getInstance(), Duration.EndOfTurn), new SacrificeTargetCost(new TargetControlledPermanent(filter))));
    }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

        this.expansionSetCode = "TMP";
        this.color.setGreen(true);

        // Tap an untapped creature you control: Untap target basic land.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new TapTargetCost(new TargetControlledCreaturePermanent(1, 1, filterCreature, true)));
        ability.addTarget(new TargetControlledPermanent(filterLand));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

  }

  public DemonOfDeathsGateAlternativeCost() {
    super("pay 6 life and sacrifice three black creatures");
    this.add(new PayLifeCost(6));
    this.add(new SacrificeTargetCost(new TargetControlledPermanent(3, 3, filter, false)));
  }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

                for (UUID uuid :selectedObjects) {
                    uuidPredicates.add(new PermanentIdPredicate(uuid));
                }
                filter.add(Predicates.not(Predicates.or(uuidPredicates)));                   
               
                target = new TargetControlledPermanent(0, 1, filter, true);
                if (target.canChoose(player.getId(), game)
                        && player.choose(Outcome.Exile, target, source.getSourceId(), game)) {               
                    for (UUID targetId : target.getTargets()) {
                        if (!selectedObjects.contains(targetId)) {
                            Permanent chosen = game.getPermanent(targetId);
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

        this.color.setWhite(true);

        // Target permanent you control gains protection from artifacts or from the color of your choice until end of turn.
        this.getSpellAbility().addEffect(new RazorBarrierEffect(Duration.EndOfTurn));
        Target target = new TargetControlledPermanent();
        this.getSpellAbility().addTarget(target);
    }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Sacrifice another creature: Cartel Aristocrat gains protection from the color of your choice until end of turn.
        Ability ability = new SimpleActivatedAbility(
                Zone.BATTLEFIELD, new CartelAristocratEffect(), new SacrificeTargetCost(new TargetControlledPermanent(filter)));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // {3}, Return a land you control to its owner's hand: Target creature you control gains shroud until end of turn. (It can't be the target of spells or abilities.)
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(ShroudAbility.getInstance(), Duration.EndOfTurn), new GenericManaCost(3));
        ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
        ability.addTarget(new TargetControlledCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // {tap}, Sacrifice three Clerics: Search your graveyard, hand, and/or library for a card named Scion of Darkness and put it onto the battlefield. If you search your library this way, shuffle it.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DarkSupplicantEffect(), new TapSourceCost());
        ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(3, 3, filter, true)));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // {2}, Return a land you control to its owner's hand: Target creature with power 2 or less is unblockable this turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UnblockableTargetEffect(), new GenericManaCost(2));
        ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
        ability.addTarget(new TargetCreaturePermanent(filterCreature));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetControlledPermanent

        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        // {1}{W}: Target permanent you control gains protection from white until end of turn.
        Ability ability1 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilityTargetEffect(
                new ProtectionAbility(filter), Duration.EndOfTurn), new ManaCostsImpl("{1}{W}"));
        ability1.addTarget(new TargetControlledPermanent());
        this.addAbility(ability1);
        // {1}: Target spell or permanent becomes white until end of turn.
        Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new SetCardColorTargetEffect(
                ObjectColor.WHITE, Duration.EndOfTurn),new ManaCostsImpl("{1}"));
        ability2.addTarget(new TargetSpellOrPermanent());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.