mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed chooseSinglePlayerForEffect
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user