* Replaced some card.putOntoBattlefield by player.moveCard... methods (#4866). Added new player.shuffleCardsToLibrary method.

This commit is contained in:
LevelX2 2020-06-20 08:58:29 +02:00
parent 52579fd1f3
commit 305dab90b5
23 changed files with 217 additions and 306 deletions

View file

@ -530,8 +530,11 @@ public interface Player extends MageItem, Copyable<Player> {
*
* @param cards - list of cards that have to be moved
* @param game - game
* @param anyOrder - true if player can determine the order of the cards
* else random order
* @param anyOrder - true = if player can determine the order of the cards
* else false = random order
* 401.4. If an effect puts two or more cards in a specific position in a library
* at the same time, the owner of those cards may arrange them in any order.
* That librarys owner doesnt reveal the order in which the cards go into the library.
* @param source - source ability
* @return
*/
@ -560,7 +563,13 @@ public interface Player extends MageItem, Copyable<Player> {
* @return
*/
boolean putCardsOnTopOfLibrary(Cards cards, Game game, Ability source, boolean anyOrder);
boolean putCardsOnTopOfLibrary(Card card, Game game, Ability source, boolean anyOrder);
boolean shuffleCardsToLibrary(Cards cards, Game game, Ability source);
boolean shuffleCardsToLibrary(Card card, Game game, Ability source);
// set the value for X mana spells and abilities
default int announceXMana(int min, int max, String message, Game game, Ability ability) {
return announceXMana(min, max, 1, message, game, ability);
@ -725,7 +734,7 @@ public interface Player extends MageItem, Copyable<Player> {
/**
* Universal method to move cards from one zone to another. Do not mix
* objects from different from zones to move.
* objects from different zones to move.
*
* @param cards
* @param toZone