use graveyard instead of library as ThievesGuildEnforcer condition.

This commit is contained in:
John Hitchings 2020-06-22 23:09:55 -07:00
parent 6e1da09023
commit 7065b7f7e7

View file

@ -1,5 +1,8 @@
package mage.cards.t;
import java.util.Objects;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
@ -19,12 +22,9 @@ import mage.constants.SubType;
import mage.constants.TargetController;
import mage.filter.FilterPermanent;
import mage.game.Game;
import mage.players.Library;
import mage.game.Graveyard;
import mage.players.Player;
import java.util.Objects;
import java.util.UUID;
/**
* @author TheElk801
*/
@ -82,8 +82,8 @@ enum ThievesGuildEnforcerCondition implements Condition {
.stream()
.map(game::getPlayer)
.filter(Objects::nonNull)
.map(Player::getLibrary)
.mapToInt(Library::size)
.map(Player::getGraveyard)
.mapToInt(Graveyard::size)
.anyMatch(i -> i >= 8);
}
}