From 4b4f73fea1129bc3ce8f3a51328b56e48a310621 Mon Sep 17 00:00:00 2001 From: North Date: Sat, 29 Jun 2013 16:58:25 +0300 Subject: [PATCH] fixed display of lands --- Mage/src/mage/cards/mock/MockCard.java | 2 ++ Mage/src/mage/cards/mock/MockSplitCard.java | 2 ++ Mage/src/mage/cards/repository/CardInfo.java | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/Mage/src/mage/cards/mock/MockCard.java b/Mage/src/mage/cards/mock/MockCard.java index bf2f2e031f..a066418ccf 100644 --- a/Mage/src/mage/cards/mock/MockCard.java +++ b/Mage/src/mage/cards/mock/MockCard.java @@ -23,6 +23,8 @@ public class MockCard extends CardImpl { this.subtype = card.getSubTypes(); this.supertype = card.getSupertypes(); + this.usesVariousArt = card.usesVariousArt(); + this.manaCost = new ManaCostsImpl(join(card.getManaCosts())); this.color = card.getColor(); diff --git a/Mage/src/mage/cards/mock/MockSplitCard.java b/Mage/src/mage/cards/mock/MockSplitCard.java index 2619d9b958..fb7c5c3234 100644 --- a/Mage/src/mage/cards/mock/MockSplitCard.java +++ b/Mage/src/mage/cards/mock/MockSplitCard.java @@ -31,6 +31,8 @@ public class MockSplitCard extends SplitCard { this.subtype = card.getSubTypes(); this.supertype = card.getSupertypes(); + this.usesVariousArt = card.usesVariousArt(); + this.color = card.getColor(); this.splitCard = card.isSplitCard(); this.flipCard = card.isFlipCard(); diff --git a/Mage/src/mage/cards/repository/CardInfo.java b/Mage/src/mage/cards/repository/CardInfo.java index 405e9166a9..78bb542c22 100644 --- a/Mage/src/mage/cards/repository/CardInfo.java +++ b/Mage/src/mage/cards/repository/CardInfo.java @@ -149,6 +149,10 @@ public class CardInfo { } } + public boolean usesVariousArt() { + return Character.isDigit(className.charAt(className.length() - 1)); + } + public ObjectColor getColor() { ObjectColor color = new ObjectColor(); color.setBlack(black);