Package mage.target.common

Examples of mage.target.common.TargetCardInYourGraveyard


    super(ownerId, 47, "Call to Mind", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{2}{U}");
    this.expansionSetCode = "M11";
    this.color.setBlue(true);

    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
    this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
  }
View Full Code Here


  public Disentomb(UUID ownerId) {
    super(ownerId, 92, "Disentomb", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{B}");
    this.expansionSetCode = "M10";
    this.color.setBlack(true);
    this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  }
View Full Code Here

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

    Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), true);
    ability.addTarget(new TargetCardInYourGraveyard());
    this.addAbility(ability);
  }
View Full Code Here

  public VengefulRebirth(UUID ownerId) {
    super(ownerId, 62, "Vengeful Rebirth", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{4}{R}{G}");
    this.expansionSetCode = "ARB";
    this.color.setRed(true);
    this.color.setGreen(true);
    this.getSpellAbility().addTarget(new TargetCardInYourGraveyard());
    this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
    this.getSpellAbility().addEffect(new VengefulRebirthEffect());
    this.getSpellAbility().addEffect(ExileSpellEffect.getInstance());
  }
View Full Code Here

  public NaturesSpiral(UUID ownerId) {
    super(ownerId, 196, "Nature's Spiral", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{1}{G}");
    this.expansionSetCode = "M10";
    this.color.setGreen(true);
    this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filter));
    this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
  }
View Full Code Here

            switch (zone) {
                case HAND:
                    target = new TargetCardInHand(Math.min(player.getHand().count(filter, game), amount), filter);
                    break;
                case GRAVEYARD:
                    target = new TargetCardInYourGraveyard(Math.min(player.getGraveyard().count(filter, game), amount), filter);
                    break;
                default:
            }
            if (target != null && target.canChoose(player.getId(), game)) {
                if (target.choose(Outcome.Exile, player.getId(), source.getSourceId(), game)) {
View Full Code Here

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if(player != null){
            TargetCardInYourGraveyard target = new TargetCardInYourGraveyard(Math.min(amount, player.getGraveyard().size()), new FilterCard());
            if (player.chooseTarget(outcome, target, source, game)) {
                for (UUID targetId: target.getTargets()) {
                    Card card = player.getGraveyard().get(targetId, game);
                    if (card != null) {
                        card.moveToZone(Zone.EXILED, source.getSourceId(), game, false);
                    }
                }
View Full Code Here

        // Choose one or both -
        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(2);
        // Return target creature card from your graveyard to your hand;
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(filterCreatureCard));
        // and/or return target land card from your graveyard to your hand.
        Mode mode1 = new Mode();
        mode1.getEffects().add(new ReturnToHandTargetEffect());
        mode1.getTargets().add(new TargetCardInYourGraveyard(filterLandCard));
        this.getSpellAbility().addMode(mode1);
    }
View Full Code Here

        filter.add(new SubtypePredicate("Plains"));
    }

    public EmeriaTheSkyRuinTriggeredAbility() {
        super(Zone.BATTLEFIELD, new ReturnFromGraveyardToBattlefieldTargetEffect(), true);
        this.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
    }
View Full Code Here

        this.getTargets().clear();
        int intValue = amount.calculate(game, this, null);
        FilterCard filter = new FilterCard("Spirit card with converted mana cost " + intValue + " or less from your graveyard");
        filter.add(new ConvertedManaCostPredicate(Filter.ComparisonType.LessThan,  intValue + 1));
        filter.add(new SubtypePredicate("Spirit"));
        this.addTarget(new TargetCardInYourGraveyard(filter));
        super.trigger(game, controllerId); //To change body of generated methods, choose Tools | Templates.
    }
View Full Code Here

TOP

Related Classes of mage.target.common.TargetCardInYourGraveyard

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.