mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +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")) {
|
if (sa.hasParam("AtRandom")) {
|
||||||
random = true;
|
random = true;
|
||||||
Aggregates.random(abilities, amount, chosenSAs);
|
Aggregates.random(abilities, amount, chosenSAs);
|
||||||
} else {
|
} else if (!abilities.isEmpty()) {
|
||||||
chosenSAs = p.getController().chooseSpellAbilitiesForEffect(abilities, sa, prompt, amount, ImmutableMap.of());
|
chosenSAs = p.getController().chooseSpellAbilitiesForEffect(abilities, sa, prompt, amount, ImmutableMap.of());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user