Fixed Issue 122. Also fixes issue with searching cards with no actual option.

This commit is contained in:
magenoxx 2011-07-06 08:55:32 +04:00
parent f8468803c2
commit e8b228af1f
4 changed files with 16 additions and 3 deletions

View file

@ -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())