mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Merge branch 'crash' into 'master'
Fix crash when all choices invalid See merge request core-developers/forge!6078
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