Examples of TargetCardInGraveyard


Examples of mage.target.common.TargetCardInGraveyard

  public RiseFromTheGrave(UUID ownerId) {
    super(ownerId, 109, "Rise from the Grave", Rarity.UNCOMMON, new CardType[]{CardType.SORCERY}, "{4}{B}");
    this.expansionSetCode = "M10";
    this.color.setBlack(true);
    this.getSpellAbility().addTarget(new TargetCardInGraveyard(filter));
    this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
    this.getSpellAbility().addEffect(new RiseFromTheGraveEffect());
  }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

                    new CardTypePredicate(CardType.INSTANT),
                    new CardTypePredicate(CardType.SORCERY)));

            String message = "Play red instant or sorcery card from your graveyard without paying its mana cost?";
            Set<Card> cards = player.getGraveyard().getCards(filter, game);
            TargetCardInGraveyard target = new TargetCardInGraveyard(filter);
            while (!cards.isEmpty() && player.chooseUse(outcome, message, game)) {
                target.clearChosen();
                if (player.choose(outcome, target, source.getSourceId(), game)) {
                    Card card = game.getCard(target.getFirstTarget());
                    if (card != null) {
                        player.cast(card.getSpellAbility(), game, true);
                        player.getGraveyard().remove(card);
                        cards.remove(card);
                    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

        this.expansionSetCode = "TMP";

        this.color.setBlack(true);

        // Put target creature card from a graveyard onto the battlefield under your control. You lose life equal to its converted mana cost.
        getSpellAbility().addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card from a graveyard")));
        getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect())
        Effect effect = new LoseLifeSourceControllerEffect(new TargetConvertedManaCost());
        effect.setText("You lose life equal to its converted mana cost");
        getSpellAbility().addEffect(effect)
    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

        this.toughness = new MageInt(2);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new ExileTargetEffect(), new ManaCostsImpl("{2}{B}"));
        ability.addCost(new TapSourceCost());
        ability.addEffect(new CreateTokenEffect(new ZombieToken("M12")));
        ability.addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card from a graveyard")));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

        super(ownerId, 267, "Reito Lantern", Rarity.UNCOMMON, new CardType[]{CardType.ARTIFACT}, "{2}");
        this.expansionSetCode = "CHK";

        // Put target card from a graveyard on the bottom of its owner's library.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new PutOnLibraryTargetEffect(false), new GenericManaCost(3));
        ability.addTarget(new TargetCardInGraveyard());
        this.addAbility(ability);

    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

        this.color.setGreen(true);

        // Return target creature card from your graveyard to your hand.
        this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInGraveyard(new FilterCreatureCard("creature card from your graveyard")));
    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever Silent Sentinel attacks, you may return target enchantment card from your graveyard to the battlefield.
        Ability ability = new AttacksTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), true);
        ability.addTarget(new TargetCardInGraveyard(filter));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

        // Choose target creature card in a graveyard that was put there from the battlefield this turn. Put that card onto the battlefield under your control.
        Effect effect = new ReturnFromGraveyardToBattlefieldTargetEffect();
        effect.setText("Choose target creature card in a graveyard that was put there from the battlefield this turn. Put that card onto the battlefield under your control");
        this.getSpellAbility().addEffect(new ReturnFromGraveyardToBattlefieldTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInGraveyard(new FilterCreatureCard(textFilter)));
        this.addWatcher(new CardsPutIntoGraveyardWatcher());
    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

            for (UUID uuid :watcher.getCardsPutToGraveyardFromBattlefield()) {
                uuidPredicates.add(new CardIdPredicate(uuid));
            }
            filter.add(Predicates.or(uuidPredicates));
            ability.getTargets().clear();
            ability.addTarget(new TargetCardInGraveyard(filter));
        }

    }
View Full Code Here

Examples of mage.target.common.TargetCardInGraveyard

        // Flash
        this.addAbility(FlashAbility.getInstance());
        // When Offalsnout leaves the battlefield, exile target card from a graveyard.
        Ability ability = new EntersBattlefieldTriggeredAbility(new ExileTargetEffect(),false);
        Target target = new TargetCardInGraveyard();
        ability.addTarget(target);
        this.addAbility(ability);
        // Evoke {B}
        this.addAbility(new EvokeAbility(this, "{B}"));
    }
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.