mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Support "ChoicePrompt" for GenericChoice
This commit is contained in:
@@ -66,10 +66,11 @@ public class ChooseGenericEffect extends SpellAbilityEffect {
|
||||
}
|
||||
|
||||
List<SpellAbility> chosenSAs = Lists.newArrayList();
|
||||
String prompt = sa.hasParam("ChoicePrompt") ? sa.getParam("ChoicePrompt") : "Choose";
|
||||
if (sa.hasParam("AtRandom")) {
|
||||
Aggregates.random(abilities, amount, chosenSAs);
|
||||
} else {
|
||||
chosenSAs = p.getController().chooseSpellAbilitiesForEffect(abilities, sa, "Choose", amount, ImmutableMap.of());
|
||||
chosenSAs = p.getController().chooseSpellAbilitiesForEffect(abilities, sa, prompt, amount, ImmutableMap.of());
|
||||
}
|
||||
|
||||
if (!chosenSAs.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user