Examples of ExileTargetEffect


Examples of mage.abilities.effects.common.ExileTargetEffect

                    effect = new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn);
                    effect.setTargetPointer(new FixedTarget(permanent.getId()));
                    game.addEffect(effect, source);

                    ExileTargetEffect exileEffect = new ExileTargetEffect();
                    exileEffect.setTargetPointer(new FixedTarget(permanent.getId()));
                    DelayedTriggeredAbility delayedAbility = new AtEndOfTurnDelayedTriggeredAbility(exileEffect);
                    delayedAbility.setSourceId(source.getSourceId());
                    delayedAbility.setControllerId(source.getControllerId());
                    game.addDelayedTriggeredAbility(delayedAbility);
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.color.setBlack(true);
        this.color.setWhite(true);

        // Exile target nonland permanent.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetNonlandPermanent());
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.color.setWhite(true);

        // Choose one -
        // *Exile target creature with power 3 or greater
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
        this.getSpellAbility().addEffect(new ExileTargetEffect());

        // *You draw two cards and you lose 2 life
        Mode mode = new Mode();
        mode.getEffects().add(new DrawCardSourceControllerEffect(2));
        mode.getEffects().add(new LoseLifeSourceControllerEffect(2));
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

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

        // Sacrifice Heap Doll: Exile target card from a graveyard.
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new SacrificeSourceCost());
        ability.addTarget(new TargetCardInGraveyard());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

    @Override
    public boolean apply(Game game, Ability source) {
        StoneTrapIdolToken token = new StoneTrapIdolToken();
        token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
        ExileTargetEffect exileEffect = new ExileTargetEffect("exile the token");
        exileEffect.setTargetPointer(new FixedTarget(token.getLastAddedToken()));
        DelayedTriggeredAbility delayedAbility = new AtEndOfTurnDelayedTriggeredAbility(exileEffect, TargetController.YOU);
        delayedAbility.setSourceId(source.getSourceId());
        delayedAbility.setControllerId(source.getControllerId());
        game.addDelayedTriggeredAbility(delayedAbility);
       
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.expansionSetCode = "THS";

        this.color.setWhite(true);

        // Exile target white permanent.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        Target target = new TargetPermanent(filter);
        this.getSpellAbility().addTarget(target);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.expansionSetCode = "ODY";

        this.color.setWhite(true);

        // Exile target attacking creature.
        this.getSpellAbility().addEffect(new ExileTargetEffect());
        this.getSpellAbility().addTarget(new TargetAttackingCreature());
        // Draw a card.
        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1));
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

        this.toughness = new MageInt(2);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // {1}{W}, Sacrifice Lieutenant Kirtar: Exile target attacking creature.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{1}{W}"));
        ability.addTarget(new TargetAttackingCreature());
        ability.addCost(new SacrificeSourceCost());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

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

        // {2}: Exile target creature card from a graveyard. Put a 1/1 green Saproling creature token onto the battlefield.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new GenericManaCost(2));
        ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard()));
        ability.addEffect(new CreateTokenEffect(new SaprolingToken()));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.ExileTargetEffect

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

                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.