forked from External/mage
Remove use of card classes for duplicate cards. Remove set related information from being tied to card classes.
This commit is contained in:
parent
3c2189e7a1
commit
e8230946af
32 changed files with 356 additions and 155 deletions
|
|
@ -3,6 +3,7 @@ package mage.cards.mock;
|
|||
import java.util.List;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.cards.SplitCard;
|
||||
import mage.cards.repository.CardInfo;
|
||||
import mage.cards.repository.CardRepository;
|
||||
|
|
@ -15,11 +16,7 @@ import mage.constants.CardType;
|
|||
public class MockSplitCard extends SplitCard {
|
||||
|
||||
public MockSplitCard(CardInfo card) {
|
||||
super(null,
|
||||
card.getCardNumber(),
|
||||
getLeftHalfName(card),
|
||||
getRightHalfName(card),
|
||||
card.getRarity(),
|
||||
super(null, new CardSetInfo(card.getName(), card.getSetCode(), card.getCardNumber(), card.getRarity()),
|
||||
card.getTypes().toArray(new CardType[0]),
|
||||
join(card.getManaCosts()),
|
||||
"",
|
||||
|
|
@ -31,6 +28,8 @@ public class MockSplitCard extends SplitCard {
|
|||
this.subtype = card.getSubTypes();
|
||||
this.supertype = card.getSupertypes();
|
||||
|
||||
this.frameColor = card.getFrameColor();
|
||||
this.frameStyle = card.getFrameStyle();
|
||||
this.usesVariousArt = card.usesVariousArt();
|
||||
|
||||
this.color = card.getColor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue