fix deadloop (need testing)

This commit is contained in:
Loki 2011-12-26 17:52:52 +04:00
parent 37416b5ee0
commit 0980ca5948

View file

@ -836,7 +836,10 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
if (card != null) {
target.add(card.getId(), game);
cardChoices.remove(card);
}
} else {
// We don't have any valid target to choose so stop choosing
break;
}
if (outcome.equals(Outcome.Neutral) && target.getTargets().size() > target.getNumberOfTargets() + (target.getMaxNumberOfTargets() - target.getNumberOfTargets()) / 2) {
return true;
}