mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- clean up line that sets "prompt"
This commit is contained in:
@@ -66,7 +66,7 @@ public class ChooseGenericEffect extends SpellAbilityEffect {
|
||||
}
|
||||
|
||||
List<SpellAbility> chosenSAs = Lists.newArrayList();
|
||||
String prompt = sa.hasParam("ChoicePrompt") ? sa.getParam("ChoicePrompt") : "Choose";
|
||||
String prompt = sa.getParamOrDefault(sa.getParam("ChoicePrompt"), "Choose");
|
||||
if (sa.hasParam("AtRandom")) {
|
||||
Aggregates.random(abilities, amount, chosenSAs);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user