Package mage.cards

Examples of mage.cards.Card.adjustTargets()


    @Override
    public void adjustTargets(Ability ability, Game game) {
        Card card = game.getCard(ability.getSourceId());
        if (card != null) {
            card.adjustTargets(ability, game);
        }
    }

    @Override
    public Costs<Cost> getOptionalCosts() {
View Full Code Here


                        newAbility.getManaCostsToPay().add(new ManaCostsImpl(new StringBuilder("{").append(xAmount).append("}").toString()));
                        newAbility.getManaCostsToPay().setX(xAmount);
                        if (varCost != null) {
                            varCost.setPaid();
                        }
                        card.adjustTargets(newAbility, game);
                        // add the different possible target option for the specific X value
                        if (newAbility.getTargets().getUnchosen().size() > 0) {
                            addTargetOptions(options, newAbility, targetNum, game);
                        }
                    }
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.