mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
use graveyard instead of library as ThievesGuildEnforcer condition.
This commit is contained in:
parent
6e1da09023
commit
7065b7f7e7
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue