Examples of ExileTargetEffect


Examples of mage.abilities.effects.common.ExileTargetEffect

        this.expansionSetCode = "ISD";

        this.color.setWhite(true);

        // Exile target card from a graveyard.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInGraveyard());

        // Flashback {W}
        this.addAbility(new FlashbackAbility(new ManaCostsImpl("{W}"), TimingRule.INSTANT));
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

    public AltarsLight(UUID ownerId) {
        super(ownerId, 1, "Altar's Light", Rarity.UNCOMMON, new CardType[]{CardType.INSTANT}, "{2}{W}{W}");
        this.expansionSetCode = "MRD";
        this.color.setWhite(true);
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetPermanent(filter));
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(source.getSourceId());
        // If Banisher Priest leaves the battlefield before its triggered ability resolves,
        // the target creature won't be exiled.
        if (permanent != null) {
            return new ExileTargetEffect(source.getSourceId(), permanent.getName()).apply(game, source);
        }
        return false;
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // {1}, Reveal X black cards from your hand, Sacrifice Martyr of Bones: Exile up to X target cards from a single graveyard.
        Effect effect = new ExileTargetEffect(null, null, Zone.GRAVEYARD);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, effect, new GenericManaCost(1));
        ability.addCost(new RevealVariableBlackCardsFromHandCost());
        ability.addCost(new SacrificeSourceCost());
        ability.addTarget(new TargetCardInASingleGraveyard(0, 1, new FilterCard("cards in a single graveyard")));
        this.addAbility(ability);
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.expansionSetCode = "SHM";

        this.color.setWhite(true);

        // Exile target creature with power 2 or less. Its controller gains 4 life.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addEffect(new LastBreathEffect());
        this.getSpellAbility().addTarget(new TargetPermanent(filter));

    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.expansionSetCode = "BNG";

        this.color.setBlack(true);

        // Exile target creature.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        // Put a colorless artifact token named Gold onto the battlefield. It has "Sacrifice this artifact: Add one mana of any color to your mana pool."
        Effect effect = new CreateTokenEffect(new GoldToken());
        effect.setText("Put a colorless artifact token named Gold onto the battlefield. It has \"Sacrifice this artifact: Add one mana of any color to your mana pool.\"");
        this.getSpellAbility().addEffect(effect);
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        if (creatureAttached != null) {
            int power = creatureAttached.getPower().getValue();
            for (int i = 0; i < power; i++) {
                ElementalToken token = new ElementalToken();
                token.putOntoBattlefield(1, game, creatureAttached.getId(), creatureAttached.getControllerId());
                ExileTargetEffect exileEffect = new ExileTargetEffect("exile the token");
                exileEffect.setTargetPointer(new FixedTarget(token.getLastAddedToken()));
                DelayedTriggeredAbility delayedAbility = new AtEndOfTurnDelayedTriggeredAbility(exileEffect);
                delayedAbility.setSourceId(creatureAttached.getId());
                delayedAbility.setControllerId(creatureAttached.getControllerId());
                game.addDelayedTriggeredAbility(delayedAbility);
            }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

    @Override
    public boolean apply(Game game, Ability source) {
        AngelToken token = new AngelToken();
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null && token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId(), true, true)) {
            Effect effect = new ExileTargetEffect();
            effect.setTargetPointer(new FixedTarget(token.getLastAddedToken()));
            CreateDelayedTriggeredAbilityEffect createEffect = new CreateDelayedTriggeredAbilityEffect(new AtTheEndOfCombatDelayedTriggeredAbility(effect));
            createEffect.apply(game, source);
            return true;
        }
        return false;
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent sourcePermanent = game.getPermanent(source.getSourceId());
        // If Suspension Field leaves the battlefield before its triggered ability resolves, the target won't be exiled.
        if (sourcePermanent != null) {
            return new ExileTargetEffect(source.getSourceId(), sourcePermanent.getName()).apply(game, source);
        }
        return false;
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

                    CardUtil.copyTo(token).from(creature);

                    token.addAbility(HasteAbility.getInstance());
                    token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());

                    ExileTargetEffect exileEffect = new ExileTargetEffect();
                    exileEffect.setTargetPointer(new FixedTarget(token.getLastAddedToken()));
                    DelayedTriggeredAbility delayedAbility = new AtEndOfTurnDelayedTriggeredAbility(exileEffect);
                    delayedAbility.setSourceId(source.getSourceId());
                    delayedAbility.setControllerId(source.getControllerId());
                    game.addDelayedTriggeredAbility(delayedAbility);
                }               
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.