change getLibrary().size() > 0 to hasCards()

This commit is contained in:
ingmargoudt 2017-03-07 17:28:26 +01:00
parent d6e4ef793e
commit 1caf3a6be4
131 changed files with 186 additions and 220 deletions

View file

@ -34,7 +34,7 @@ public class RevealTopLandToBattlefieldElseHandEffect extends OneShotEffect {
if (sourceObject == null || controller == null) {
return false;
}
if (controller.getLibrary().size() > 0) {
if (controller.getLibrary().hasCards()) {
CardsImpl cards = new CardsImpl();
Card card = controller.getLibrary().getFromTop(game);
if (card == null) {