- clean up line that sets "prompt"

This commit is contained in:
Northmoc
2021-07-28 09:54:07 -04:00
parent d903cb1a84
commit a14b13164f

View File

@@ -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 {