forked from External/mage
refactor: removed useless getNumberOfTargets from Target (replaced with getMinNumberOfTargets)
This commit is contained in:
parent
264eb58644
commit
00dc6f4742
20 changed files with 55 additions and 63 deletions
|
|
@ -47,7 +47,7 @@ public class DiscardTargetCost extends CostImpl {
|
|||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
int amount = this.getTargets().get(0).getNumberOfTargets();
|
||||
int amount = this.getTargets().get(0).getMinNumberOfTargets();
|
||||
if (randomDiscard) {
|
||||
this.cards.addAll(player.discard(amount, true, true, source, game).getCards(game));
|
||||
} else if (this.getTargets().choose(Outcome.Discard, controllerId, source.getSourceId(), source, game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue