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) {
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null) {
|
||||
if (player != null
|
||||
&& player.getLibrary().hasCards()) {
|
||||
Card topCard = player.getLibrary().getFromTop(game);
|
||||
cardsToExile.add(topCard);
|
||||
}
|
||||
}
|
||||
// exile all cards at one time
|
||||
controller.moveCardsToExile(cardsToExile, source, game, true, exileId, Tibalt.getName());
|
||||
return true;
|
||||
if (!cardsToExile.isEmpty()) {
|
||||
return controller.moveCardsToExile(cardsToExile, source, game, true, exileId, Tibalt.getName());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue