* Added a auto select color for color choices of mana abilities that ask the human player to select a colo (implements #690).

This commit is contained in:
LevelX2 2015-07-21 17:23:10 +02:00
parent a8e519d671
commit eca37467a3
5 changed files with 228 additions and 142 deletions

View file

@ -626,4 +626,24 @@ public class Mana implements Comparable<Mana>, Serializable, Copyable<Mana> {
}
return moreMana;
}
public int getDifferentColors() {
int count = 0;
if (blue > 0) {
count++;
}
if (black > 0) {
count++;
}
if (green > 0) {
count++;
}
if (white > 0) {
count++;
}
if (red > 0) {
count++;
}
return count;
}
}