mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Fixed chooseSingleCardForEffect for human player.
This commit is contained in:
@@ -263,10 +263,12 @@ public class PlayerControllerHuman extends PlayerController {
|
|||||||
// 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 ( isOptional )
|
if ( isOptional )
|
||||||
return GuiChoose.oneOrNone(title, options);
|
return GuiChoose.oneOrNone(title, options);
|
||||||
else if ( options.size() > 2 )
|
else if ( options.size() > 1 )
|
||||||
return GuiChoose.one(title, options);
|
return GuiChoose.one(title, options);
|
||||||
else
|
else if (options.size() == 1)
|
||||||
return options.get(0);
|
return options.get(0);
|
||||||
|
else
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user