mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
- Fixed #8326
This commit is contained in:
parent
11d5fc7eae
commit
c36f976741
1 changed files with 5 additions and 3 deletions
|
|
@ -283,14 +283,16 @@ class ExileTopCardEachPlayersLibrary extends OneShotEffect {
|
||||||
&& Tibalt != null) {
|
&& Tibalt != null) {
|
||||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||||
Player player = game.getPlayer(playerId);
|
Player player = game.getPlayer(playerId);
|
||||||
if (player != null) {
|
if (player != null
|
||||||
|
&& player.getLibrary().hasCards()) {
|
||||||
Card topCard = player.getLibrary().getFromTop(game);
|
Card topCard = player.getLibrary().getFromTop(game);
|
||||||
cardsToExile.add(topCard);
|
cardsToExile.add(topCard);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// exile all cards at one time
|
// exile all cards at one time
|
||||||
controller.moveCardsToExile(cardsToExile, source, game, true, exileId, Tibalt.getName());
|
if (!cardsToExile.isEmpty()) {
|
||||||
return true;
|
return controller.moveCardsToExile(cardsToExile, source, game, true, exileId, Tibalt.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue