Examples of drawCards()


Examples of mage.players.Player.drawCards()

                }
                    usedFreeMulligans.put(player.getId(), 1);
                }
            }
            player.drawCards(numCards - deduction, this);
            fireInformEvent(new StringBuilder(player.getName())
                    .append(" mulligans ")
                    .append(numCards)
                    .append(numCards == 1? " card":" cards")
                    .append(deduction == 0 ? " for free and draws ":" down to ")
View Full Code Here

Examples of mage.players.Player.drawCards()

    @Override
    public void beginStep(Game game, UUID activePlayerId) {
        Player activePlayer = game.getPlayer(activePlayerId);
        //20091005 - 504.1/703.4c
        activePlayer.drawCards(1, game);
//        game.saveState();
        game.applyEffects();
        super.beginStep(game, activePlayerId);
    }
View Full Code Here

Examples of mage.players.Player.drawCards()

    public boolean apply(Game game, Ability source) {
        Player targetPlayer = game.getPlayer(source.getFirstTarget());
        if (targetPlayer != null) {
            int count = Math.min(2, targetPlayer.getHand().size());
            targetPlayer.discard(2, source, game);
            targetPlayer.drawCards(count, 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(getTargetPointer().getFirst(game, source));
        if (player != null) {
            player.drawCards(cardsToDraw, game);
            player.discard(cardsToDiscard, source, 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(3, game);
           
            boolean putOnTop = player.chooseUse(Outcome.Neutral, "Put cards on top?", game);
            putInLibrary(player, source, game, putOnTop);
            putInLibrary(player, source, game, putOnTop);
           
View Full Code Here

Examples of mage.players.Player.drawCards()

      if (player.flipCoin()) {
        Permanent perm = game.getPermanent(source.getSourceId());
        if (perm != null) {
          perm.sacrifice(source.getId(), game);
        }
        player.drawCards(3, game);
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of mage.players.Player.drawCards()

        player.getLibrary().addAll(player.getHand().getCards(game), game);
        player.getLibrary().addAll(player.getGraveyard().getCards(game), game);
        player.getLibrary().shuffle();
        player.getHand().clear();
        player.getGraveyard().clear();
        player.drawCards(7, game);
      }
    }
    return true;
  }
View Full Code Here

Examples of mage.players.Player.drawCards()

    @Override
    public boolean apply(Game game, Ability source) {
        for (UUID target : targetPointer.getTargets(game, source)) {
            Player player = game.getPlayer(target);
            if (player != null) {
                player.drawCards(amount.calculate(game, source, this), game);
            }
        }
        return true;
    }
View Full Code Here

Examples of mage.players.Player.drawCards()

                            player.removeFromHand(card, game);
                            card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true);
                        }
                        game.informPlayers(player.getName() + " shuffles the cards from his or her hand into his or her library");
                        player.shuffleLibrary(game);
                        player.drawCards(cardsHand, game);
                    }
                }
            }
            return true;
        }
View Full Code Here

Examples of mage.players.Player.drawCards()

                if (player != null) {
                    for (Card card : player.getHand().getCards(game)) {
                        player.discard(card, source, game);
                    }

                    player.drawCards(7, 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.