forked from External/mage
Fixed multiple NPE errors in cards;
This commit is contained in:
parent
285ed5801f
commit
105062beb7
14 changed files with 104 additions and 94 deletions
|
|
@ -285,6 +285,9 @@ public final class ZonesHandler {
|
|||
|
||||
public static List<Card> chooseOrder(String message, Cards cards, Player player, Game game) {
|
||||
List<Card> order = new ArrayList<>();
|
||||
if (cards.isEmpty()) {
|
||||
return order;
|
||||
}
|
||||
TargetCard target = new TargetCard(Zone.ALL, new FilterCard(message));
|
||||
target.setRequired(true);
|
||||
while (player.isInGame() && cards.size() > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue