forked from External/mage
Refactor: improved choose cards method to use source param (fixed NPE like #10233, #9974 and other bugs with choose cards)
This commit is contained in:
parent
5474787641
commit
689b93d005
280 changed files with 341 additions and 342 deletions
|
|
@ -106,7 +106,7 @@ public class RevealAndSeparatePilesEffect extends OneShotEffect {
|
|||
Player separatingPlayer = this.getExecutingPlayer(controller, game, source, playerWhoSeparates, "separate the revealed cards");
|
||||
TargetCard target = new TargetCard(0, cards.size(), Zone.LIBRARY, filter);
|
||||
List<Card> pile1 = new ArrayList<>();
|
||||
separatingPlayer.choose(Outcome.Neutral, cards, target, game);
|
||||
separatingPlayer.choose(Outcome.Neutral, cards, target, source, game);
|
||||
target.getTargets()
|
||||
.stream()
|
||||
.map(game::getCard)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue