mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
Fixed Issue 122. Also fixes issue with searching cards with no actual option.
This commit is contained in:
parent
f8468803c2
commit
e8b228af1f
4 changed files with 16 additions and 3 deletions
|
|
@ -793,6 +793,9 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
|
|||
@Override
|
||||
public boolean choose(Outcome outcome, Cards cards, TargetCard target, Game game) {
|
||||
logger.debug("choose");
|
||||
if (cards != null && cards.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
while (!target.doneChosing()) {
|
||||
if (cards.isEmpty()) {
|
||||
if (!target.isRequired())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue