1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-03-30 09:08:36 -09:00

[FIX] The third half of the fix for issue 302 (still testing).

This commit is contained in:
maurer.it 2011-10-21 08:07:21 -04:00
parent f0fdd7d1ba
commit ed2724fce7

View file

@ -205,6 +205,15 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
}
}
}
if ( target instanceof TargetCardInHand ) {
List<Card> cards = new ArrayList<Card>();
cards.addAll(this.hand.getCards(game));
Card pick = pickTarget(cards, outcome, target, null, game);
if ( pick != null ) {
target.add(pick.getId(), game);
return true;
}
}
return false;
}