Examples of adjustTargets()


Examples of mage.MageObject.adjustTargets()

            // each become a target of that spell. (Any abilities that trigger when those players, objects,
            // and/or zones become the target of a spell trigger at this point; they'll wait to be put on
            // the stack until the spell has finished being cast.)

            if (sourceObject != null) {
                sourceObject.adjustTargets(this, game);
            }
            if (getTargets().size() > 0 && getTargets().chooseTargets(getEffects().get(0).getOutcome(), this.controllerId, this, game) == false) {
                if (variableManaCost != null || announceString != null) {
                    game.informPlayer(controller, new StringBuilder(sourceObject != null ? sourceObject.getLogName(): "").append(": no valid targets with this value of X").toString());
                }
View Full Code Here

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

Examples of mage.cards.Card.adjustTargets()

                        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.