forked from External/mage
SetCardColor and SetCardSubtype effects.
This commit is contained in:
parent
9db0651220
commit
6bc1846620
3 changed files with 185 additions and 0 deletions
|
|
@ -163,6 +163,25 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
|
|||
sb.append("G");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (getColorCount() > 1) {
|
||||
return "multicolored";
|
||||
} else {
|
||||
if (white)
|
||||
return "white";
|
||||
if (blue)
|
||||
return "blue";
|
||||
if (black)
|
||||
return "black";
|
||||
if (red)
|
||||
return "red";
|
||||
if (green)
|
||||
return "green";
|
||||
}
|
||||
return "colorless";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object color) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue