mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* 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:
parent
7c579c198d
commit
9d4746c318
2 changed files with 18 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue