mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Fixed missing copy fields in CardImpl (morph, modaldfc, art; related to rollback);
This commit is contained in:
parent
b9094b92cb
commit
7a1795660a
1 changed files with 10 additions and 7 deletions
|
@ -59,7 +59,7 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
protected boolean usesVariousArt = false;
|
||||
protected boolean splitCard;
|
||||
protected boolean morphCard;
|
||||
protected boolean modalDFC;
|
||||
protected boolean modalDFC; // modal double faces card
|
||||
|
||||
protected List<UUID> attachments = new ArrayList<>();
|
||||
|
||||
|
@ -126,20 +126,23 @@ public abstract class CardImpl extends MageObjectImpl implements Card {
|
|||
ownerId = card.ownerId;
|
||||
cardNumber = card.cardNumber;
|
||||
expansionSetCode = card.expansionSetCode;
|
||||
tokenSetCode = card.tokenSetCode;
|
||||
tokenDescriptor = card.tokenDescriptor;
|
||||
rarity = card.rarity;
|
||||
|
||||
transformable = card.transformable;
|
||||
if (transformable) {
|
||||
secondSideCardClazz = card.secondSideCardClazz;
|
||||
nightCard = card.nightCard;
|
||||
}
|
||||
spellAbility = null; // will be set on first getSpellAbility call if card has one.
|
||||
secondSideCardClazz = card.secondSideCardClazz;
|
||||
secondSideCard = null; // will be set on first getSecondCardFace call if card has one
|
||||
nightCard = card.nightCard;
|
||||
|
||||
spellAbility = null; // will be set on first getSpellAbility call if card has one
|
||||
flipCard = card.flipCard;
|
||||
flipCardName = card.flipCardName;
|
||||
splitCard = card.splitCard;
|
||||
usesVariousArt = card.usesVariousArt;
|
||||
splitCard = card.splitCard;
|
||||
morphCard = card.morphCard;
|
||||
modalDFC = card.modalDFC;
|
||||
|
||||
this.attachments.addAll(card.attachments);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue