Examples of chooseNewTargets()


Examples of mage.game.stack.Spell.chooseNewTargets()

                            if (spell != null) {
                                Spell copy = spell.copySpell();
                                copy.setControllerId(player.getId());
                                copy.setCopiedSpell(true);
                                game.getStack().push(copy);
                                copy.chooseNewTargets(game, player.getId());
                                String activateMessage = copy.getActivatedMessage(game);
                                if (activateMessage.startsWith(" casts ")) {
                                    activateMessage = activateMessage.substring(6);
                                }
                                game.informPlayers(player.getName() + " copies " + activateMessage);
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

        if (spell != null) {
            Spell copy = spell.copySpell();
            copy.setControllerId(spell.getControllerId());
            copy.setCopiedSpell(true);
            game.getStack().push(copy);
            copy.chooseNewTargets(game, spell.getControllerId());
            Player player = game.getPlayer(spell.getControllerId());
            String activateMessage = copy.getActivatedMessage(game);
            if (activateMessage.startsWith(" casts ")) {
                activateMessage = activateMessage.substring(6);
            }
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

            Player player = game.getPlayer(spell.getControllerId());
            if (player != null) {
                cost.clearPaid();
                if (!cost.pay(source, game, spell.getControllerId(),
                        spell.getControllerId(), false)) {
                    return spell.chooseNewTargets(game, source.getControllerId(), true, true);
                }
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

        if (spell != null) {
            Spell copy = spell.copySpell();
            copy.setControllerId(source.getControllerId());
            copy.setCopiedSpell(true);
            game.getStack().push(copy);
            copy.chooseNewTargets(game, source.getControllerId());
            Player player = game.getPlayer(source.getControllerId());
            String activateMessage = copy.getActivatedMessage(game);
            if (activateMessage.startsWith(" casts ")) {
                activateMessage = activateMessage.substring(6);
            }
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

                if (!playerId.equals(spell.getControllerId())) {
                    Spell copy = spell.copySpell();
                    copy.setControllerId(playerId);
                    copy.setCopiedSpell(true);
                    game.getStack().push(copy);
                    copy.chooseNewTargets(game, playerId);
                }
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

                        if (spell != null) {
                            Spell copy = spell.copySpell();
                            copy.setControllerId(affectedPlayer.getId());
                            copy.setCopiedSpell(true);
                            game.getStack().push(copy);
                            copy.chooseNewTargets(game, affectedPlayer.getId());
                            game.informPlayers(affectedPlayer.getName() + " copies " + copy.getName() + ".");
                        }
                    }
                }
                return true;
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

            if (spell != null) {
                Spell copy = spell.copySpell();
                copy.setControllerId(source.getControllerId());
                copy.setCopiedSpell(true);
                game.getStack().push(copy);
                copy.chooseNewTargets(game, source.getControllerId());
                game.informPlayers(new StringBuilder(controller.getName()).append(copy.getActivatedMessage(game)).toString());
                Spell sourceSpell = (Spell) game.getStack().getStackObject(source.getSourceId());
                if (sourceSpell != null) {
                    if (sourceSpell.getFromZone() == Zone.GRAVEYARD) {
                        copy = spell.copySpell();
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

    @Override
    public boolean apply(Game game, Ability source) {
        Spell spell = game.getStack().getSpell(source.getFirstTarget());
        Player you = game.getPlayer(source.getControllerId());
        if (spell != null && you != null && you.chooseUse(Outcome.Benefit, "Do you wish to choose new targets for " + spell.getName() + "?", game)) {
            spell.chooseNewTargets(game, you.getId());
        }
        if (spell != null) {
            Spell copy = spell.copySpell();
            copy.setControllerId(source.getControllerId());
            copy.setCopiedSpell(true);
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

            Spell copy = spell.copySpell();
            copy.setControllerId(source.getControllerId());
            copy.setCopiedSpell(true);
            game.getStack().push(copy);
            if (you != null && you.chooseUse(Outcome.Benefit, "Do you wish to choose new targets for the copied " + spell.getName() + "?", game)) {
                return copy.chooseNewTargets(game, you.getId());
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.game.stack.Spell.chooseNewTargets()

        if (spell != null) {
            Spell copy = spell.copySpell();
            copy.setControllerId(source.getControllerId());
            copy.setCopiedSpell(true);
            game.getStack().push(copy);
            copy.chooseNewTargets(game, source.getControllerId());
            Player player = game.getPlayer(source.getControllerId());
            String activateMessage = copy.getActivatedMessage(game);
            if (activateMessage.startsWith(" casts ")) {
                activateMessage = activateMessage.substring(6);
            }
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.