DigMultipleEffect: add extra ChosenZone to select N from the Chosen

This commit is contained in:
Hans Mackowiak
2020-05-20 16:35:23 +00:00
committed by Michael Kamensky
parent b7b2c88916
commit d86aa31ab8
10 changed files with 38 additions and 32 deletions

View File

@@ -2934,10 +2934,10 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
}
@Override
public CardCollection chooseCardsForEffectMultiple(Map<String, CardCollection> validMap, SpellAbility sa, String title) {
public CardCollection chooseCardsForEffectMultiple(Map<String, CardCollection> validMap, SpellAbility sa, String title, boolean isOptional) {
CardCollection result = new CardCollection();
for (Map.Entry<String, CardCollection> e : validMap.entrySet()) {
result.addAll(chooseCardsForEffect(e.getValue(), sa, title + " " + e.getKey(), 0, 1, true));
result.addAll(chooseCardsForEffect(e.getValue(), sa, title + " " + e.getKey(), 0, 1, isOptional));
}
return result;
}