mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +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) {
|
public static List<Card> chooseReturnType(final Player ai, final String type, final Card activate, final Card target, final int amount) {
|
||||||
final List<Card> typeList =
|
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)) {
|
if ((target != null) && target.getController() == ai && typeList.contains(target)) {
|
||||||
// don't bounce the card we're pumping
|
// don't bounce the card we're pumping
|
||||||
typeList.remove(target);
|
typeList.remove(target);
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ public class PlayerControllerHuman extends PlayerController {
|
|||||||
@Override
|
@Override
|
||||||
public Player chooseSinglePlayerForEffect(List<Player> options, SpellAbility sa, String title) {
|
public Player chooseSinglePlayerForEffect(List<Player> options, SpellAbility sa, String title) {
|
||||||
// Human is supposed to read the message and understand from it what to choose
|
// 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);
|
return GuiChoose.one(title, options);
|
||||||
else
|
else
|
||||||
return options.get(0);
|
return options.get(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user