forked from External/mage
* 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:
parent
a8e519d671
commit
eca37467a3
5 changed files with 228 additions and 142 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue