forked from External/mage
Redesigned handling of various art for cards.
This commit is contained in:
parent
96738632d1
commit
4b2e6a8bc0
15 changed files with 82 additions and 49 deletions
|
|
@ -47,7 +47,6 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Mode;
|
||||
import mage.game.permanent.PermanentCard;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -87,10 +86,7 @@ public class CardView extends SimpleCardView {
|
|||
}
|
||||
|
||||
public CardView(Card card) {
|
||||
super(card.getId(), card.getExpansionSetCode(), card.getCardNumber(), card.isFaceDown(),
|
||||
(card instanceof PermanentCard ?
|
||||
Character.isDigit(((PermanentCard) card).getCard().getClass().getName().charAt(((PermanentCard) card).getCard().getClass().getName().length()-1))
|
||||
:Character.isDigit(card.getClass().getName().charAt(card.getClass().getName().length()-1))));
|
||||
super(card.getId(), card.getExpansionSetCode(), card.getCardNumber(), card.isFaceDown(), card.getUsesVariousArt());
|
||||
|
||||
// no information available for face down cards
|
||||
if (this.faceDown) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue