diff --git a/Mage.Common/src/mage/view/CardView.java b/Mage.Common/src/mage/view/CardView.java index 467ef8fe13..aa7f009748 100644 --- a/Mage.Common/src/mage/view/CardView.java +++ b/Mage.Common/src/mage/view/CardView.java @@ -64,6 +64,7 @@ public class CardView implements Serializable { protected String art; protected Rarity rarity; protected String expansionSetCode; + protected int cardNumber; public List targets; @@ -95,6 +96,7 @@ public class CardView implements Serializable { this.rarity = card.getRarity(); this.expansionSetCode = card.getExpansionSetCode(); } + this.cardNumber = card.getCardNumber(); if (card instanceof Spell) { Spell spell = (Spell)card; @@ -204,6 +206,10 @@ public class CardView implements Serializable { return id; } + public int getCardNumber() { + return cardNumber; + } + /** * Returns UUIDs for targets. * Can be null if there is no target selected.