Fixed searching for token images (not always worked - e.g. for Plants from Avenger of Zendikar).

This commit is contained in:
magenoxx 2011-06-13 16:56:57 +04:00
parent 7719682e7a
commit cf45872867

View file

@ -68,12 +68,14 @@ public class CardImageUtils {
File file = new File(filename);
if (!file.exists()) {
card.setName(card.getName() + " 1");
filename = getImagePath(card, false);
CardInfo updated = new CardInfo(card);
updated.setName(card.getName() + " 1");
filename = getImagePath(updated, false);
file = new File(filename);
if (!file.exists()) {
card.setName(card.getName() + " 2");
filename = getImagePath(card, false);
updated = new CardInfo(card);
updated.setName(card.getName() + " 2");
filename = getImagePath(updated, false);
file = new File(filename);
}
}