Examples of chooseNewTargets()


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

    Spell spell = game.getStack().getSpell(source.getFirstTarget());
    if (spell != null) {
      Spell copy = spell.copySpell();
      copy.setControllerId(source.getControllerId());
      game.getStack().push(copy);
      copy.chooseNewTargets(game);
      return true;
    }
    return false;
  }
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());
    if (spell != null) {
      return spell.chooseNewTargets(game);
    }
    return false;
  }

  @Override
View Full Code Here

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

    public boolean apply(Game game, Ability source) {
        if (spell != null) {
            // don't change the targets of the in the origin copied spell
            Spell copySpell = spell.copy();
            game.getStack().push(copySpell);
            copySpell.chooseNewTargets(game, source.getControllerId());
            return true;
        }

        return false;
    }
View Full Code Here

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

            for (int i = 0; i < watcher.getSpellOrder(spell) - 1; i++) {
                Spell copy = spell.copySpell();
                copy.setControllerId(source.getControllerId());
                copy.setCopiedSpell(true);
                game.getStack().push(copy);
                copy.chooseNewTargets(game, source.getControllerId());
            }
            return 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()

    @Override
    public boolean apply(Game game, Ability source) {
        Spell spell = game.getStack().getSpell(source.getFirstTarget());
        if (spell != null) {
            return spell.chooseNewTargets(game, source.getControllerId(), forceChange, onlyOneTarget);
        }
        return false;
    }

    @Override
View Full Code Here

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

                for (int i = 0; i < replicateCount; i++) {
                    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());
                }
                return true;
            }
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.getSourceId());
        if (spell != null) {
            spell.addCounters(CounterType.CHARGE.createInstance(2), game);
            return spell.chooseNewTargets(game, source.getControllerId(), false, false);
        }
        return false;
    }
}
View Full Code Here

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

        if (spell != null && controller != null) {
            Player spellCaster = game.getPlayer(spell.getControllerId());
            // controller gets controll of spell
            spell.setControllerId(controller.getId());
            // and chooses new targets
            spell.chooseNewTargets(game, controller.getId());
            game.informPlayers(new StringBuilder(controller.getName()).append(" got control of ").append(spell.getName()).append(" spell.").toString());
            // and spell controller get control of Perplexing Chimera
            if (spellCaster != null) {
                ContinuousEffect effect = new PerplexingChimeraControlEffect();
                effect.setTargetPointer(new FixedTarget(spellCaster.getId()));
View Full Code Here

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

            for (int i = 0; i < 2; i++) {
                Spell copy = spell.copySpell();
                copy.setControllerId(source.getControllerId());
                copy.setCopiedSpell(true);
                game.getStack().push(copy);
                copy.chooseNewTargets(game, source.getControllerId());
            }
            return true;
        }
        return false;
    }
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.