mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Code simplification.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user