mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
cleanup
This commit is contained in:
@@ -92,8 +92,9 @@ public class MakeCardEffect extends SpellAbilityEffect {
|
||||
}
|
||||
|
||||
final ZoneType zone = ZoneType.smartValueOf(sa.getParamOrDefault("Zone", "Library"));
|
||||
final int amount = sa.hasParam("Amount") ?
|
||||
AbilityUtils.calculateAmount(source, sa.getParam("Amount"), sa) : 1;
|
||||
final int amount = sa.hasParam("Amount") ?
|
||||
AbilityUtils.calculateAmount(source, sa.getParam("Amount"), sa) : 1;
|
||||
|
||||
CardCollection cards = new CardCollection();
|
||||
|
||||
for (final String name : names) {
|
||||
@@ -118,11 +119,11 @@ public class MakeCardEffect extends SpellAbilityEffect {
|
||||
card.setTapped(true);
|
||||
}
|
||||
final String desc = sa.getParamOrDefault("OptionPrompt", "");
|
||||
if (sa.hasParam("Optional") && sa.hasParam("OptionPrompt") && //for now, OptionPrompt is needed {
|
||||
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