From 153e3bc12e8ea8b28fff262f3118025e8e739633 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 26 Nov 2012 00:25:39 +0100 Subject: [PATCH] Fixed a bug, that images of basic lands in game were not displayed. --- Mage.Common/src/mage/view/CardView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage.Common/src/mage/view/CardView.java b/Mage.Common/src/mage/view/CardView.java index ed2dea1dab..7d7d7d658d 100644 --- a/Mage.Common/src/mage/view/CardView.java +++ b/Mage.Common/src/mage/view/CardView.java @@ -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) {