Check isDividedAsYouChoose

This commit is contained in:
tool4EvEr
2021-04-26 18:20:59 +02:00
parent be89397e48
commit 703fddeb65

View File

@@ -302,7 +302,7 @@ public class TargetRestrictions {
*/
public final boolean isMinTargetsChosen(final Card c, final SpellAbility sa) {
int min = getMinTargets(c, sa);
if (min == 0 || sa.getDividedValue() == 0) {
if (min == 0 || (sa.isDividedAsYouChoose() && sa.getDividedValue() == 0)) {
return true;
}
return min <= sa.getTargets().size();