Fixed a bug that AI did not choose a creature card in her graveyard if opponent casts Exhume.

This commit is contained in:
LevelX2 2013-04-24 00:29:37 +02:00
parent 9e9256cd82
commit 2fce670024
9 changed files with 42 additions and 1 deletions

View file

@ -591,7 +591,7 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
card = pickWorstCard(cards, null, target, source, game);
}
if (source != null) {
if (target.canTarget(card.getId(), source, game)) {
if (target.canTarget(card.getId(), this.getId(), source, game)) {
return card;
}
}