* Made choose a card name choices mandatory (not selecting a name could cause null pointer exceptions e.g. Meddling Mage).

This commit is contained in:
LevelX2 2020-08-23 12:14:13 +02:00
parent 149635a9f1
commit b7d86a71da

View file

@ -51,7 +51,7 @@ public class ChooseACardNameEffect extends OneShotEffect {
sourceObject = game.getObject(source.getSourceId());
}
if (controller != null && sourceObject != null) {
Choice cardChoice = new ChoiceImpl();
Choice cardChoice = new ChoiceImpl(true);
switch (typeOfName) {
case ALL:
cardChoice.setChoices(CardRepository.instance.getNames());