Added downloading and displaying emblem images

This commit is contained in:
magenoxx 2012-06-13 09:48:10 +04:00
parent 09bd74f26e
commit e34ee2e7f6
10 changed files with 75 additions and 23 deletions

View file

@ -157,11 +157,11 @@ public class CardView extends SimpleCardView {
this.rules = ((PermanentToken) card).getRules();
this.type = ((PermanentToken)card).getToken().getTokenType();
}
if (name.equals("") && card instanceof StackAbility) {
if (this.rarity == null && card instanceof StackAbility) {
StackAbility stackAbility = (StackAbility)card;
if (stackAbility.getZone().equals(Constants.Zone.COMMAND)) {
this.name = "Emblem";
this.rarity = Rarity.NA;
this.expansionSetCode = stackAbility.getExpansionSetCode();
this.rules = new ArrayList<String>();
this.rules.add(stackAbility.getRule());
}