forked from External/mage
Added downloading and displaying emblem images
This commit is contained in:
parent
09bd74f26e
commit
e34ee2e7f6
10 changed files with 75 additions and 23 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue