* Iona, Shiel of Emeria - Added choice information to card tooltip.

This commit is contained in:
LevelX2 2014-04-04 08:39:19 +02:00
parent 253bdd5d5d
commit 73885ab01d
4 changed files with 26 additions and 18 deletions

View file

@ -1307,6 +1307,9 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
@Override
public int getAmount(int min, int max, String message, Game game) {
log.debug("getAmount");
if (message.startsWith("Assign damage to ")) {
return min;
}
//TODO: improve this
if (min < max && min == 0) {
return new Random().nextInt(max+1);