refactor: ChoiceImpl constructor must specify whether required

changed a few others to required where clearly applicable
This commit is contained in:
xenohedron 2024-06-29 22:57:47 -04:00
parent bdeb4ed7ae
commit 9863e23435
27 changed files with 32 additions and 38 deletions

View file

@ -106,7 +106,7 @@ class CommanderIdentityManaEffect extends ManaEffect {
}
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
Choice choice = new ChoiceImpl().setManaColorChoice(true);
Choice choice = new ChoiceImpl(false).setManaColorChoice(true);
choice.setMessage("Pick a mana color");
for (UUID commanderId : game.getCommandersIds(controller, CommanderCardType.COMMANDER_OR_OATHBREAKER, false)) {
Card commander = game.getCard(commanderId);

View file

@ -36,10 +36,6 @@ public class ChoiceImpl implements Choice {
protected boolean manaColorChoice = false; // set true to allow automatic choosing with Outcome.PutManaInPool
public ChoiceImpl() {
this(false);
}
public ChoiceImpl(boolean required) {
this(required, ChoiceHintType.TEXT);
}