forked from External/mage
change getLibrary().size() > 0 to hasCards()
This commit is contained in:
parent
d6e4ef793e
commit
1caf3a6be4
131 changed files with 186 additions and 220 deletions
|
|
@ -40,6 +40,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.cards.Card;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterCard;
|
||||
|
|
@ -47,7 +48,6 @@ import mage.game.Game;
|
|||
import mage.util.RandomUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class Library implements Serializable {
|
||||
|
|
@ -255,6 +255,11 @@ public class Library implements Serializable {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
public boolean hasCards() {
|
||||
return size() > 0;
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
this.emptyDraw = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue