mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Return null modes when all invalid.
This commit is contained in:
@@ -61,8 +61,8 @@ public class SpellAbilityChoicesIterator {
|
|||||||
}
|
}
|
||||||
// TODO: Do we need to do something special to support cards that have extra costs
|
// TODO: Do we need to do something special to support cards that have extra costs
|
||||||
// when choosing more modes, like Blessed Alliance?
|
// when choosing more modes, like Blessed Alliance?
|
||||||
if (modesMap.size() == 0) {
|
if (modesMap.isEmpty()) {
|
||||||
modeIterator = Collections.emptyIterator();
|
return null;
|
||||||
} else if (!allowRepeat) {
|
} else if (!allowRepeat) {
|
||||||
modeIterator = CombinatoricsUtils.combinationsIterator(modesMap.size(), num);
|
modeIterator = CombinatoricsUtils.combinationsIterator(modesMap.size(), num);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user