- Fixed a crash (varolz, the scar-striped + dryad arbor)

This commit is contained in:
swordshine
2018-04-02 11:55:44 +08:00
parent af70a1f58b
commit eeec3feb1f
2 changed files with 10 additions and 1 deletions

View File

@@ -283,6 +283,9 @@ public final class ManaCost implements Comparable<ManaCost>, Iterable<ManaCostSh
public String getShortString() {
StringBuilder sb = new StringBuilder();
int generic = getGenericCost();
if (this.isZero()) {
sb.append('0');
}
if (generic > 0) {
sb.append(generic);
}