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
|
|
@ -1282,7 +1282,7 @@ public final class CardUtil {
|
|||
Cards castableCards = new CardsImpl(cardMap.keySet());
|
||||
TargetCard target = new TargetCard(0, 1, Zone.ALL, defaultFilter);
|
||||
target.setNotTarget(true);
|
||||
player.choose(Outcome.PlayForFree, castableCards, target, game);
|
||||
player.choose(Outcome.PlayForFree, castableCards, target, source, game);
|
||||
cardToCast = castableCards.get(target.getFirstTarget(), game);
|
||||
}
|
||||
if (cardToCast == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue