Fix DigMultiple not changing cards when no valid targets

This commit is contained in:
tool4EvEr
2021-04-05 13:41:46 +02:00
parent e225b8a77c
commit da89b95654

View File

@@ -77,9 +77,8 @@ public class DigMultipleEffect extends SpellAbilityEffect {
if (validMap.isEmpty()) {
chooser.getController().notifyOfValue(sa, null, Localizer.getInstance().getMessage("lblNoValidCards"));
continue;
}
else {
CardCollection chosen = chooser.getController().chooseCardsForEffectMultiple(validMap, sa, Localizer.getInstance().getMessage("lblChooseCards"), chooseOptional);
if (!chosen.isEmpty()) {
@@ -143,6 +142,7 @@ public class DigMultipleEffect extends SpellAbilityEffect {
}
rest.remove(c);
}
}
// now, move the rest to destZone2
if (destZone2 == ZoneType.Library || destZone2 == ZoneType.PlanarDeck || destZone2 == ZoneType.SchemeDeck