Examples of drawCards()


Examples of mage.players.Player.drawCards()

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    if (player != null) {
      player.drawCards(3, game);
      putOnLibrary(player, source, game);
      putOnLibrary(player, source, game);
      return true;
    }
    return false;
View Full Code Here

Examples of mage.players.Player.drawCards()

      mulliganed.add(playerId);
    }
    player.getLibrary().addAll(player.getHand().getCards(this), this);
    player.getHand().clear();
    player.shuffleLibrary(this);
    player.drawCards(numCards - 1, this);
    fireInformEvent(player.getName() + " mulligans down to " + Integer.toString(numCards - 1) + " cards");
  }

  @Override
  public FreeForAll copy() {
View Full Code Here

Examples of mage.players.Player.drawCards()

  @Override
  public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    if (player != null) {
      player.drawCards(amount, game);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.drawCards()

            Player player = getPlayer(playerId);
            if (!gameOptions.testMode || player.getLife() == 0) {
                player.initLife(this.getLife());
            }
            if (!gameOptions.testMode) {
                player.drawCards(7, this);
            }
        }

        //20091005 - 103.4
        List<UUID> keepPlayers = new ArrayList<>();
View Full Code Here

Examples of mage.players.Player.drawCards()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            if (!optional || player.chooseUse(outcome, "User draw, then discard effect?", game)) {
                player.drawCards(cardsToDraw, game);
                player.discard(cardsToDiscard, source, game);
            }
            return true;
        }
        return false;
View Full Code Here

Examples of mage.players.Player.drawCards()

        fireInformEvent(new StringBuilder(player.getName())
                .append(" mulligans")
                .append(deduction == 0 ? " for free and draws ":" down to ")
                .append(Integer.toString(numCards - deduction))
                .append(numCards - deduction == 1? " card":" cards").toString());
        player.drawCards(numCards - deduction, this);
    }

    @Override
    public void quit(UUID playerId) {
        if (state != null) {
View Full Code Here

Examples of mage.players.Player.drawCards()

        switch(targetController) {
            case ANY:
                for (UUID playerId: sourcePlayer.getInRange()) {
                    Player player = game.getPlayer(playerId);
                    if (player != null) {
                        player.drawCards(amount.calculate(game, source, this), game);
                    }
                }
                break;
            case OPPONENT:
                for (UUID playerId: game.getOpponents(sourcePlayer.getId())) {
View Full Code Here

Examples of mage.players.Player.drawCards()

                break;
            case OPPONENT:
                for (UUID playerId: game.getOpponents(sourcePlayer.getId())) {
                    Player player = game.getPlayer(playerId);
                    if (player != null) {
                        player.drawCards(amount.calculate(game, source, this), game);
                    }
                }               
                break;
        }
        return true;
View Full Code Here

Examples of mage.players.Player.drawCards()

            int cardsToDraw = amount.calculate(game, source, this);
            if (upTo) {
                cardsToDraw = player.getAmount(0, cardsToDraw, "Draw how many cards?", game);
            }
            if (!optional || player.chooseUse(outcome, "Use draw effect?", game)) {
                player.drawCards(cardsToDraw, game);
            }
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.drawCards()

    @Override
    public boolean apply(Game game, Ability source) {
        Player player = game.getPlayer(source.getControllerId());
        if (player != null) {
            player.drawCards(amount.calculate(game, source, this), game);
            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.