fixed display of lands

This commit is contained in:
North 2013-06-29 16:58:25 +03:00
parent a43bc8bed6
commit 4b4f73fea1
3 changed files with 8 additions and 0 deletions

View file

@ -23,6 +23,8 @@ public class MockCard extends CardImpl<MockCard> {
this.subtype = card.getSubTypes(); this.subtype = card.getSubTypes();
this.supertype = card.getSupertypes(); this.supertype = card.getSupertypes();
this.usesVariousArt = card.usesVariousArt();
this.manaCost = new ManaCostsImpl(join(card.getManaCosts())); this.manaCost = new ManaCostsImpl(join(card.getManaCosts()));
this.color = card.getColor(); this.color = card.getColor();

View file

@ -31,6 +31,8 @@ public class MockSplitCard extends SplitCard<MockSplitCard> {
this.subtype = card.getSubTypes(); this.subtype = card.getSubTypes();
this.supertype = card.getSupertypes(); this.supertype = card.getSupertypes();
this.usesVariousArt = card.usesVariousArt();
this.color = card.getColor(); this.color = card.getColor();
this.splitCard = card.isSplitCard(); this.splitCard = card.isSplitCard();
this.flipCard = card.isFlipCard(); this.flipCard = card.isFlipCard();

View file

@ -149,6 +149,10 @@ public class CardInfo {
} }
} }
public boolean usesVariousArt() {
return Character.isDigit(className.charAt(className.length() - 1));
}
public ObjectColor getColor() { public ObjectColor getColor() {
ObjectColor color = new ObjectColor(); ObjectColor color = new ObjectColor();
color.setBlack(black); color.setBlack(black);