- Fixed multicolor tokens not generating image names correctly

This commit is contained in:
moomarc
2012-08-21 14:59:39 +00:00
parent 72db7625c3
commit 24af3ccea1

View File

@@ -542,11 +542,11 @@ public class AbilityFactoryToken extends AbilityFactory {
} }
} }
if (this.tokenImage.equals("")) { if (this.tokenImage.equals("")) {
imageName += colorDesc.trim() + " " + this.tokenPower + " " + this.tokenToughness + " " + this.tokenName; imageName += colorDesc.replace(" ", "") + " " + this.tokenPower + " " + this.tokenToughness + " " + this.tokenName;
} else { } else {
imageName = this.tokenImage; imageName = this.tokenImage;
} }
// System.out.println("AF_Token imageName = " + imageName); System.out.println("AF_Token imageName = " + imageName);
for (final char c : colorDesc.toCharArray()) { for (final char c : colorDesc.toCharArray()) {
cost += c + ' '; cost += c + ' ';