mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Added a null check for The Great Aurora
This commit is contained in:
parent
8368a8379c
commit
c241b45a91
1 changed files with 5 additions and 3 deletions
|
@ -117,10 +117,12 @@ class TheGreatAuroraEffect extends OneShotEffect {
|
|||
player.moveCards(player.getHand(), Zone.LIBRARY, source, game);
|
||||
List<Permanent> list = permanentsOwned.remove(player.getId());
|
||||
permanentsCount.put(playerId, handCards + (list != null ? list.size() : 0));
|
||||
for (Permanent permanent : list) {
|
||||
player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
|
||||
if (list != null) {
|
||||
for (Permanent permanent : list) {
|
||||
player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, true, true);
|
||||
}
|
||||
player.shuffleLibrary(source, game);
|
||||
}
|
||||
player.shuffleLibrary(source, game);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue