* Bend or Break - fixed that pile choosing can be skipped;
-
package mage.cards.b;
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-import java.util.stream.Collectors;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
@@ -26,8 +19,10 @@ import mage.target.TargetPermanent;
import mage.target.TargetPlayer;
import mage.target.common.TargetControlledPermanent;
+import java.util.*;
+import java.util.stream.Collectors;
+
/**
- *
* @author LevelX2 & L_J
*/
public final class BendOrBreak extends CardImpl {
@@ -100,7 +95,8 @@ class BendOrBreakEffect extends OneShotEffect {
FilterControlledLandPermanent filter = new FilterControlledLandPermanent("lands you control to assign to the first pile (lands not chosen will be assigned to the second pile)");
TargetPermanent target = new TargetControlledPermanent(0, Integer.MAX_VALUE, filter, true);
if (target.canChoose(source.getSourceId(), currentPlayer.getId(), game)) {
- if (currentPlayer.chooseTarget(Outcome.Neutral, target, source, game)) {
+ // TODO: add support for AI (50/50), need AI hints mechanic here
+ currentPlayer.chooseTarget(Outcome.Neutral, target, source, game);
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, currentPlayer.getId(), game)) {
if (target.getTargets().contains(permanent.getId())) {
firstPile.add(permanent);
@@ -108,7 +104,6 @@ class BendOrBreakEffect extends OneShotEffect {
secondPile.add(permanent);
}
}
- }
StringBuilder sb = new StringBuilder("First pile of ").append(currentPlayer.getLogName()).append(": ");
sb.append(firstPile.stream().map(Permanent::getLogName).collect(Collectors.joining(", ")));
