[ORI] Added 6 black cards.

This commit is contained in:
LevelX2 2015-06-30 01:24:51 +02:00
parent 0ee0ba3a95
commit 123d1e4ec6
20 changed files with 1005 additions and 232 deletions

View file

@ -1525,7 +1525,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
return modes.getMode();
}
//TODO: improve this;
for (Mode mode : modes.values()) {
for (Mode mode : modes.getAvailableModes(source, game)) {
if (!modes.getSelectedModes().contains(mode.getId()) // select only modes not already selected
&& mode.getTargets().canChoose(source.getSourceId(), source.getControllerId(), game)) { // and where targets are available
return mode;