* Fixed bugs in display of subtype and supertype in card editor (workaround) should be better fixed directly in card repository handling.

This commit is contained in:
LevelX2 2013-07-07 11:17:16 +02:00
parent 7c579c198d
commit 9d4746c318
2 changed files with 18 additions and 4 deletions

View file

@ -20,8 +20,15 @@ public class MockCard extends CardImpl<MockCard> {
this.toughness = mageIntFromString(card.getToughness());
this.rarity = card.getRarity();
this.cardType = card.getTypes();
this.subtype = card.getSubTypes();
this.supertype = card.getSupertypes();
// dont copy list with empty element (would be better to eliminate earlier but I don't know how (LevelX2))
if (card.getSubTypes().get(0).length() >0) {
// empty element leads to added "-" after cardtype.
this.subtype = card.getSubTypes();
}
if (card.getSupertypes().get(0).length() >0) {
// empty element leads to blank before Card Type.
this.supertype = card.getSupertypes();
}
this.usesVariousArt = card.usesVariousArt();

View file

@ -28,8 +28,15 @@ public class MockSplitCard extends SplitCard<MockSplitCard> {
this.power = mageIntFromString(card.getPower());
this.toughness = mageIntFromString(card.getToughness());
this.cardType = card.getTypes();
this.subtype = card.getSubTypes();
this.supertype = card.getSupertypes();
// dont copy list with empty element (would be better to eliminate earlier but I don't know how (LevelX2))
if (card.getSubTypes().get(0).length() >0) {
// empty element leads to added "-" after cardtype.
this.subtype = card.getSubTypes();
}
if (card.getSupertypes().get(0).length() >0) {
// empty element leads to blank before Card Type.
this.supertype = card.getSupertypes();
}
this.usesVariousArt = card.usesVariousArt();