forked from External/mage
Fixed missing copy statements of cardAttribute in game state.
This commit is contained in:
parent
35654a5ca8
commit
324188a86e
3 changed files with 12 additions and 1 deletions
|
|
@ -21,6 +21,14 @@ public class CardAttribute implements Serializable {
|
|||
public CardAttribute(Card card) {
|
||||
color = card.getColor(null).copy();
|
||||
}
|
||||
|
||||
public CardAttribute(CardAttribute cardAttribute) {
|
||||
this.color = cardAttribute.color;
|
||||
}
|
||||
|
||||
public CardAttribute copy() {
|
||||
return new CardAttribute(this);
|
||||
}
|
||||
|
||||
public ObjectColor getColor() {
|
||||
return color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue