mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
fix deadloop (need testing)
This commit is contained in:
parent
37416b5ee0
commit
0980ca5948
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue