mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
* 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:
parent
149635a9f1
commit
b7d86a71da
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue