mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Fix crash when all choices invalid
This commit is contained in:
@@ -72,7 +72,7 @@ public class ChooseGenericEffect extends SpellAbilityEffect {
|
||||
if (sa.hasParam("AtRandom")) {
|
||||
random = true;
|
||||
Aggregates.random(abilities, amount, chosenSAs);
|
||||
} else {
|
||||
} else if (!abilities.isEmpty()) {
|
||||
chosenSAs = p.getController().chooseSpellAbilitiesForEffect(abilities, sa, prompt, amount, ImmutableMap.of());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user