mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
merge fix
This commit is contained in:
parent
849aea5946
commit
62eb116124
2 changed files with 4 additions and 4 deletions
|
|
@ -63,11 +63,11 @@ public abstract class ModalDoubleFacedCard extends CardImpl implements CardWithH
|
||||||
public ModalDoubleFacedCard(ModalDoubleFacedCard card) {
|
public ModalDoubleFacedCard(ModalDoubleFacedCard card) {
|
||||||
super(card);
|
super(card);
|
||||||
if (card.leftHalfCard != null) {
|
if (card.leftHalfCard != null) {
|
||||||
this.leftHalfCard = card.leftHalfCard;
|
this.leftHalfCard = card.leftHalfCard.copy();
|
||||||
((ModalDoubleFacedCardHalf) this.leftHalfCard).setParentCard(this);
|
((ModalDoubleFacedCardHalf) this.leftHalfCard).setParentCard(this);
|
||||||
}
|
}
|
||||||
if (card.rightHalfCard != null) {
|
if (card.rightHalfCard != null) {
|
||||||
this.rightHalfCard = card.rightHalfCard;
|
this.rightHalfCard = card.rightHalfCard.copy();
|
||||||
((ModalDoubleFacedCardHalf) this.rightHalfCard).setParentCard(this);
|
((ModalDoubleFacedCardHalf) this.rightHalfCard).setParentCard(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,11 +39,11 @@ public abstract class SplitCard extends CardImpl implements CardWithHalves {
|
||||||
protected SplitCard(SplitCard card) {
|
protected SplitCard(SplitCard card) {
|
||||||
super(card);
|
super(card);
|
||||||
if (card.leftHalfCard != null) {
|
if (card.leftHalfCard != null) {
|
||||||
this.leftHalfCard = card.leftHalfCard;
|
this.leftHalfCard = card.leftHalfCard.copy();
|
||||||
((SplitCardHalf) this.leftHalfCard).setParentCard(this);
|
((SplitCardHalf) this.leftHalfCard).setParentCard(this);
|
||||||
}
|
}
|
||||||
if (card.rightHalfCard != null) {
|
if (card.rightHalfCard != null) {
|
||||||
this.rightHalfCard = card.rightHalfCard;
|
this.rightHalfCard = card.rightHalfCard.copy();
|
||||||
((SplitCardHalf) this.rightHalfCard).setParentCard(this);
|
((SplitCardHalf) this.rightHalfCard).setParentCard(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue