use graveyard instead of library as ThievesGuildEnforcer condition.
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);
}
}
\ No newline at end of file
