Fixed a bug, that images of basic lands in game were not displayed.

This commit is contained in:
LevelX2 2012-11-26 00:25:39 +01:00
parent fd1e729221
commit 153e3bc12e

View file

@ -47,6 +47,7 @@ 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
@ -86,7 +87,10 @@ public class CardView extends SimpleCardView {
}
public CardView(Card card) {
super(card.getId(), card.getExpansionSetCode(), card.getCardNumber(), card.isFaceDown(), Character.isDigit(card.getClass().getName().charAt(card.getClass().getName().length()-1)));
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))));
// no information available for face down cards
if (this.faceDown) {