mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Update MakeCardEffect.java
This commit is contained in:
@@ -43,6 +43,12 @@ public class MakeCardEffect extends SpellAbilityEffect {
|
||||
List<ICardFace> faces = new ArrayList<>();
|
||||
List<PaperCard> pack = null;
|
||||
List<String> names = Lists.newArrayList();
|
||||
|
||||
final String desc = sa.getParamOrDefault("OptionPrompt", "");
|
||||
if (sa.hasParam("Optional") && sa.hasParam("OptionPrompt") && //for now, OptionPrompt is needed
|
||||
!player.getController().confirmAction(sa, null, Localizer.getInstance().getMessage(desc), null)) {
|
||||
return;
|
||||
}
|
||||
if (sa.hasParam("Name")) {
|
||||
final String n = sa.getParam("Name");
|
||||
if (n.equals("ChosenName")) {
|
||||
@@ -118,11 +124,6 @@ public class MakeCardEffect extends SpellAbilityEffect {
|
||||
if (sa.hasParam("Tapped")) {
|
||||
card.setTapped(true);
|
||||
}
|
||||
final String desc = sa.getParamOrDefault("OptionPrompt", "");
|
||||
if (sa.hasParam("Optional") && sa.hasParam("OptionPrompt") && //for now, OptionPrompt is needed
|
||||
!player.getController().confirmAction(sa, null, Localizer.getInstance().getMessage(desc), null)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user