Package mage.players

Examples of mage.players.Player.discardToMax()


  public void beginStep(Game game, UUID activePlayerId) {
    super.beginStep(game, activePlayerId);
    Player activePlayer = game.getPlayer(activePlayerId);
    //20091005 - 514.1
    if (!activePlayer.hasLeft() && !activePlayer.hasLost())
      activePlayer.discardToMax(game);
    //20100423 - 514.2
    game.getBattlefield().endOfTurn(activePlayerId, game);
    game.getState().removeEotEffects(game);
  }
View Full Code Here


        super.beginStep(game, activePlayerId);
        Player activePlayer = game.getPlayer(activePlayerId);
        game.getState().setPriorityPlayerId(activePlayer.getId());
        //20091005 - 514.1
        if (activePlayer.isInGame()) {
            activePlayer.discardToMax(game);           
        }
        //20100423 - 514.2
        game.getBattlefield().endOfTurn(activePlayerId, game);
        game.getState().removeEotEffects(game);
    }
View Full Code Here

    }

    @Override
    public boolean apply(Game game, Ability source) {
        Player you = game.getPlayer(source.getControllerId());
        you.discardToMax(game);
        you.drawCards(7, game);
        Cards hand = you.getHand();
        for (int i = 0; i < 3; i++) {
            Card card = hand.getRandom(game);
            if (card != null) {
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.