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
|
|
@ -58,7 +58,7 @@ public class MillThenPutInHandEffect extends OneShotEffect {
|
|||
return applyOtherwiseEffect(game, source);
|
||||
}
|
||||
TargetCard target = new TargetCard(0, 1, Zone.ALL, filter);
|
||||
player.choose(Outcome.DrawCard, cards, target, game);
|
||||
player.choose(Outcome.DrawCard, cards, target, source, game);
|
||||
Card card = game.getCard(target.getFirstTarget());
|
||||
if (card == null) {
|
||||
return applyOtherwiseEffect(game, source);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue