* Some minor adjustements/changes.

This commit is contained in:
LevelX2 2015-05-12 23:00:34 +02:00
parent 28d46e2a95
commit ed501cad21
15 changed files with 44 additions and 16 deletions

View file

@ -367,6 +367,14 @@ public class ComputerPlayer extends PlayerImpl implements Player {
if (!target.isRequired(sourceId, game)) {
return false;
}
if (target.canTarget(opponentId, null, game)) {
target.add(opponentId, game);
return true;
}
if (target.canTarget(playerId, null, game)) {
target.add(playerId, game);
return true;
}
throw new IllegalStateException("TargetPermanentOrPlayer wasn't handled. class:" + target.getClass().toString());
}
if (target instanceof TargetCardInGraveyard) {