Minor fix to target handlling.

This commit is contained in:
LevelX2 2015-05-25 22:58:01 +02:00
parent af4a40d5d5
commit c2ee9ef4ad

View file

@ -368,7 +368,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
return true;
}
}
if (!target.isRequired(sourceId, game)) {
if (!target.isRequired(sourceId, game) || target.getNumberOfTargets() == 0) {
return false;
}
if (target.canTarget(opponentId, null, game)) {