- Fixed chooseSinglePlayerForEffect

This commit is contained in:
swordshine
2013-06-11 04:18:47 +00:00
parent 38fffa62e7
commit ec3d40caa1
2 changed files with 2 additions and 2 deletions

View File

@@ -654,7 +654,7 @@ public class ComputerUtil {
*/
public static List<Card> chooseReturnType(final Player ai, final String type, final Card activate, final Card target, final int amount) {
final List<Card> typeList =
CardLists.getValidCards(ai.getCardsIn(ZoneType.Battlefield), type.split(","), activate.getController(), activate);
CardLists.getValidCards(ai.getCardsIn(ZoneType.Battlefield), type.split(";"), activate.getController(), activate);
if ((target != null) && target.getController() == ai && typeList.contains(target)) {
// don't bounce the card we're pumping
typeList.remove(target);

View File

@@ -281,7 +281,7 @@ public class PlayerControllerHuman extends PlayerController {
@Override
public Player chooseSinglePlayerForEffect(List<Player> options, SpellAbility sa, String title) {
// Human is supposed to read the message and understand from it what to choose
if ( options.size() > 2 )
if (options.size() > 1)
return GuiChoose.one(title, options);
else
return options.get(0);