- Code simplification.

This commit is contained in:
Agetian
2018-05-10 22:08:14 +03:00
parent 74e84dc381
commit b091b892e9

View File

@@ -117,11 +117,7 @@ public class TokenInfo {
// TODO - most tokens mana cost is 0, this needs to be fixed // TODO - most tokens mana cost is 0, this needs to be fixed
// c.setManaCost(manaCost); // c.setManaCost(manaCost);
if (!color.isEmpty()) { c.setColor(color.isEmpty() ? manaCost : color);
c.setColor(color); // ideally, the token color would be explicitly set at this point
} else {
c.setColor(manaCost); // FIXME: otherwise, try to deduce from mana cost? Does this ever work for tokens?
}
c.setToken(true); c.setToken(true);
for (final String t : types) { for (final String t : types) {