mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08: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…
Add table
Add a link
Reference in a new issue