mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixing crash for pressing OK for Murmuring Bosk and friends
This commit is contained in:
@@ -32,6 +32,7 @@ import forge.control.input.InputSelectManyCards;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.zone.Zone;
|
||||
import forge.game.zone.ZoneType;
|
||||
import forge.view.ButtonUtil;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -223,6 +224,10 @@ class CardFactoryLands {
|
||||
|
||||
@Override
|
||||
protected Input onDone() {
|
||||
if (selected.isEmpty()) {
|
||||
return onCancel();
|
||||
}
|
||||
|
||||
String cardName = selected.get(0).getName();
|
||||
JOptionPane.showMessageDialog(null, "Revealed card: " + cardName, cardName, JOptionPane.PLAIN_MESSAGE);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user